1
0

openmpt123_config.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * openmpt123_config.hpp
  3. * ---------------------
  4. * Purpose: libopenmpt command line player
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #ifndef OPENMPT123_CONFIG_HPP
  10. #define OPENMPT123_CONFIG_HPP
  11. #define MPT_INLINE_NS mpt_openmpt123
  12. #if defined(_WIN32)
  13. #ifndef WIN32
  14. #define WIN32
  15. #endif
  16. #endif // _WIN32
  17. #if defined(WIN32)
  18. #ifndef WIN32_LEAN_AND_MEAN
  19. #define WIN32_LEAN_AND_MEAN
  20. #endif
  21. #ifndef NOMINMAX
  22. #define NOMINMAX
  23. #endif
  24. #ifdef _UNICODE
  25. #ifndef UNICODE
  26. #define UNICODE
  27. #endif
  28. #endif
  29. #ifdef UNICODE
  30. #ifndef _UNICODE
  31. #if defined(__clang__)
  32. #pragma clang diagnostic push
  33. #pragma clang diagnostic ignored "-Wreserved-id-macro"
  34. #endif
  35. #define _UNICODE
  36. #if defined(__clang__)
  37. #pragma clang diagnostic pop
  38. #endif
  39. #endif
  40. #endif
  41. #endif // WIN32
  42. #if defined(WIN32)
  43. #define MPT_WITH_MMIO
  44. #endif // WIN32
  45. #if defined(MPT_BUILD_MSVC)
  46. #define MPT_WITH_FLAC
  47. #define MPT_WITH_PORTAUDIO
  48. #if defined(MPT_BUILD_MSVC_STATIC)
  49. #define FLAC__NO_DLL
  50. #endif
  51. #endif // MPT_BUILD_MSVC
  52. #define OPENMPT123_VERSION_STRING OPENMPT_API_VERSION_STRING
  53. #endif // OPENMPT123_CONFIG_HPP