pop_options.hpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. //
  2. // detail/pop_options.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2021 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. #elif defined(__clang__)
  24. // Clang
  25. # if defined(__OBJC__)
  26. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  27. # if defined(BOOST_ASIO_OBJC_WORKAROUND)
  28. # undef Protocol
  29. # undef id
  30. # undef BOOST_ASIO_OBJC_WORKAROUND
  31. # endif
  32. # endif
  33. # endif
  34. # if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  35. # if !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  36. # pragma GCC visibility pop
  37. # endif // !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  38. # endif // !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32)
  39. # pragma GCC diagnostic pop
  40. #elif defined(__GNUC__)
  41. // GNU C++
  42. # if defined(__MINGW32__) || defined(__CYGWIN__)
  43. # pragma pack (pop)
  44. # endif
  45. # if defined(__OBJC__)
  46. # if !defined(__APPLE_CC__) || (__APPLE_CC__ <= 1)
  47. # if defined(BOOST_ASIO_OBJC_WORKAROUND)
  48. # undef Protocol
  49. # undef id
  50. # undef BOOST_ASIO_OBJC_WORKAROUND
  51. # endif
  52. # endif
  53. # endif
  54. # if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  55. # if !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  56. # pragma GCC visibility pop
  57. # endif // !defined(BOOST_ASIO_DISABLE_VISIBILITY)
  58. # endif // (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
  59. # pragma GCC diagnostic pop
  60. #elif defined(__KCC)
  61. // Kai C++
  62. #elif defined(__sgi)
  63. // SGI MIPSpro C++
  64. #elif defined(__DECCXX)
  65. // Compaq Tru64 Unix cxx
  66. #elif defined(__ghs)
  67. // Greenhills C++
  68. #elif defined(__BORLANDC__) && !defined(__clang__)
  69. // Borland C++
  70. # pragma option pop
  71. # pragma nopushoptwarn
  72. # pragma nopackwarning
  73. #elif defined(__MWERKS__)
  74. // Metrowerks CodeWarrior
  75. #elif defined(__SUNPRO_CC)
  76. // Sun Workshop Compiler C++
  77. #elif defined(__HP_aCC)
  78. // HP aCC
  79. #elif defined(__MRC__) || defined(__SC__)
  80. // MPW MrCpp or SCpp
  81. #elif defined(__IBMCPP__)
  82. // IBM Visual Age
  83. #elif defined(_MSC_VER)
  84. // Microsoft Visual C++
  85. //
  86. // Must remain the last #elif since some other vendors (Metrowerks, for example)
  87. // also #define _MSC_VER
  88. # pragma warning (pop)
  89. # pragma pack (pop)
  90. # if defined(__cplusplus_cli) || defined(__cplusplus_winrt)
  91. # if defined(BOOST_ASIO_CLR_WORKAROUND)
  92. # undef generic
  93. # undef BOOST_ASIO_CLR_WORKAROUND
  94. # endif
  95. # endif
  96. #endif