pop_options.hpp 2.5 KB

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