pop_options.hpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. //
  2. // detail/pop_options.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2024 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(BOOST_ASIO_DISABLE_VISIBILITY)
  20. # pragma GCC visibility pop
  21. # endif // !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  22. # endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  23. # pragma pop_macro ("emit")
  24. # pragma pop_macro ("signal")
  25. # pragma pop_macro ("slot")
  26. #elif defined(__clang__)
  27. // Clang
  28. # if defined(__OBJC__)
  29. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  30. # if defined(BOOST_ASIO_OBJC_WORKAROUND)
  31. # undef Protocol
  32. # undef id
  33. # undef BOOST_ASIO_OBJC_WORKAROUND
  34. # endif
  35. # endif
  36. # endif
  37. # if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  38. # if !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  39. # pragma GCC visibility pop
  40. # endif // !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  41. # endif // !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  42. # pragma GCC diagnostic pop
  43. # pragma pop_macro ("emit")
  44. # pragma pop_macro ("signal")
  45. # pragma pop_macro ("slot")
  46. #elif defined(__GNUC__)
  47. // GNU C++
  48. # if defined(__MINGW32__) || defined(__CYGWIN__)
  49. # pragma pack (pop)
  50. # endif
  51. # if defined(__OBJC__)
  52. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  53. # if defined(BOOST_ASIO_OBJC_WORKAROUND)
  54. # undef Protocol
  55. # undef id
  56. # undef BOOST_ASIO_OBJC_WORKAROUND
  57. # endif
  58. # endif
  59. # endif
  60. # if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  61. # if !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  62. # pragma GCC visibility pop
  63. # endif // !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  64. # endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  65. # pragma GCC diagnostic pop
  66. # pragma pop_macro ("emit")
  67. # pragma pop_macro ("signal")
  68. # pragma pop_macro ("slot")
  69. #elif defined(__KCC)
  70. // Kai C++
  71. #elif defined(__sgi)
  72. // SGI MIPSpro C++
  73. #elif defined(__DECCXX)
  74. // Compaq Tru64 Unix cxx
  75. #elif defined(__ghs)
  76. // Greenhills C++
  77. #elif defined(__BORLANDC__) && !defined(__clang__)
  78. // Borland C++
  79. # pragma option pop
  80. # pragma nopushoptwarn
  81. # pragma nopackwarning
  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 (pop)
  98. # pragma pack (pop)
  99. # if defined(__cplusplus_cli) || defined(__cplusplus_winrt)
  100. # if defined(BOOST_ASIO_CLR_WORKAROUND)
  101. # undef generic
  102. # undef BOOST_ASIO_CLR_WORKAROUND
  103. # endif
  104. # endif
  105. # pragma pop_macro ("emit")
  106. # pragma pop_macro ("signal")
  107. # pragma pop_macro ("slot")
  108. #endif