pop_options.hpp 2.8 KB

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