pop_options.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. //
  2. // detail/pop_options.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2013 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. #elif defined(__GNUC__)
  19. // GNU C++
  20. # if defined(__MINGW32__) || defined(__CYGWIN__)
  21. # pragma pack (pop)
  22. # endif
  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. #elif defined(__KCC)
  33. // Kai C++
  34. #elif defined(__sgi)
  35. // SGI MIPSpro C++
  36. #elif defined(__DECCXX)
  37. // Compaq Tru64 Unix cxx
  38. #elif defined(__ghs)
  39. // Greenhills C++
  40. #elif defined(__BORLANDC__)
  41. // Borland C++
  42. # pragma option pop
  43. # pragma nopushoptwarn
  44. # pragma nopackwarning
  45. #elif defined(__MWERKS__)
  46. // Metrowerks CodeWarrior
  47. #elif defined(__SUNPRO_CC)
  48. // Sun Workshop Compiler C++
  49. #elif defined(__HP_aCC)
  50. // HP aCC
  51. #elif defined(__MRC__) || defined(__SC__)
  52. // MPW MrCpp or SCpp
  53. #elif defined(__IBMCPP__)
  54. // IBM Visual Age
  55. #elif defined(_MSC_VER)
  56. // Microsoft Visual C++
  57. //
  58. // Must remain the last #elif since some other vendors (Metrowerks, for example)
  59. // also #define _MSC_VER
  60. # pragma warning (pop)
  61. # pragma pack (pop)
  62. # if defined(__cplusplus_cli) || defined(__cplusplus_winrt)
  63. # if defined(BOOST_ASIO_CLR_WORKAROUND)
  64. # undef generic
  65. # undef BOOST_ASIO_CLR_WORKAROUND
  66. # endif
  67. # endif
  68. #endif