Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
4.3KB

  1. //
  2. // detail/push_options.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // No header guard
  11. #if defined(__COMO__)
  12. // Comeau C++
  13. #elif defined(__DMC__)
  14. // Digital Mars C++
  15. #elif defined(__INTEL_COMPILER) || defined(__ICL) \
  16. || defined(__ICC) || defined(__ECC)
  17. // Intel C++
  18. # if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  19. # if !defined(ASIO_DISABLE_VISIBILITY)
  20. # pragma GCC visibility push (default)
  21. # endif // !defined(ASIO_DISABLE_VISIBILITY)
  22. # endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  23. #elif defined(__clang__)
  24. // Clang
  25. # if defined(__OBJC__)
  26. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  27. # if !defined(ASIO_DISABLE_OBJC_WORKAROUND)
  28. # if !defined(Protocol) && !defined(id)
  29. # define Protocol cpp_Protocol
  30. # define id cpp_id
  31. # define ASIO_OBJC_WORKAROUND
  32. # endif
  33. # endif
  34. # endif
  35. # endif
  36. # if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  37. # if !defined(ASIO_DISABLE_VISIBILITY)
  38. # pragma GCC visibility push (default)
  39. # endif // !defined(ASIO_DISABLE_VISIBILITY)
  40. # endif // !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  41. #elif defined(__GNUC__)
  42. // GNU C++
  43. # if defined(__MINGW32__) || defined(__CYGWIN__)
  44. # pragma pack (push, 8)
  45. # endif
  46. # if defined(__OBJC__)
  47. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  48. # if !defined(ASIO_DISABLE_OBJC_WORKAROUND)
  49. # if !defined(Protocol) && !defined(id)
  50. # define Protocol cpp_Protocol
  51. # define id cpp_id
  52. # define ASIO_OBJC_WORKAROUND
  53. # endif
  54. # endif
  55. # endif
  56. # endif
  57. # if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  58. # if !defined(ASIO_DISABLE_VISIBILITY)
  59. # pragma GCC visibility push (default)
  60. # endif // !defined(ASIO_DISABLE_VISIBILITY)
  61. # endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  62. # if (__GNUC__ >= 7)
  63. # pragma GCC diagnostic push
  64. # pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
  65. # endif // (__GNUC__ >= 7)
  66. #elif defined(__KCC)
  67. // Kai C++
  68. #elif defined(__sgi)
  69. // SGI MIPSpro C++
  70. #elif defined(__DECCXX)
  71. // Compaq Tru64 Unix cxx
  72. #elif defined(__ghs)
  73. // Greenhills C++
  74. #elif defined(__BORLANDC__)
  75. // Borland C++
  76. # pragma option push -a8 -b -Ve- -Vx- -w-inl -vi-
  77. # pragma nopushoptwarn
  78. # pragma nopackwarning
  79. # if !defined(__MT__)
  80. # error Multithreaded RTL must be selected.
  81. # endif // !defined(__MT__)
  82. #elif defined(__MWERKS__)
  83. // Metrowerks CodeWarrior
  84. #elif defined(__SUNPRO_CC)
  85. // Sun Workshop Compiler C++
  86. #elif defined(__HP_aCC)
  87. // HP aCC
  88. #elif defined(__MRC__) || defined(__SC__)
  89. // MPW MrCpp or SCpp
  90. #elif defined(__IBMCPP__)
  91. // IBM Visual Age
  92. #elif defined(_MSC_VER)
  93. // Microsoft Visual C++
  94. //
  95. // Must remain the last #elif since some other vendors (Metrowerks, for example)
  96. // also #define _MSC_VER
  97. # pragma warning (disable:4103)
  98. # pragma warning (push)
  99. # pragma warning (disable:4127)
  100. # pragma warning (disable:4180)
  101. # pragma warning (disable:4244)
  102. # pragma warning (disable:4355)
  103. # pragma warning (disable:4510)
  104. # pragma warning (disable:4512)
  105. # pragma warning (disable:4610)
  106. # pragma warning (disable:4675)
  107. # if (_MSC_VER < 1600)
  108. // Visual Studio 2008 generates spurious warnings about unused parameters.
  109. # pragma warning (disable:4100)
  110. # endif // (_MSC_VER < 1600)
  111. # if defined(_M_IX86) && defined(_Wp64)
  112. // The /Wp64 option is broken. If you want to check 64 bit portability, use a
  113. // 64 bit compiler!
  114. # pragma warning (disable:4311)
  115. # pragma warning (disable:4312)
  116. # endif // defined(_M_IX86) && defined(_Wp64)
  117. # pragma pack (push, 8)
  118. // Note that if the /Og optimisation flag is enabled with MSVC6, the compiler
  119. // has a tendency to incorrectly optimise away some calls to member template
  120. // functions, even though those functions contain code that should not be
  121. // optimised away! Therefore we will always disable this optimisation option
  122. // for the MSVC6 compiler.
  123. # if (_MSC_VER < 1300)
  124. # pragma optimize ("g", off)
  125. # endif
  126. # if !defined(_MT)
  127. # error Multithreaded RTL must be selected.
  128. # endif // !defined(_MT)
  129. # if defined(__cplusplus_cli) || defined(__cplusplus_winrt)
  130. # if !defined(ASIO_DISABLE_CLR_WORKAROUND)
  131. # if !defined(generic)
  132. # define generic cpp_generic
  133. # define ASIO_CLR_WORKAROUND
  134. # endif
  135. # endif
  136. # endif
  137. #endif