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.

push_options.hpp 4.0KB

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