cpp_version.hpp 369 B

123456789101112131415161718
  1. #ifndef MSGPACK_CPP_VERSION_HPP
  2. #define MSGPACK_CPP_VERSION_HPP
  3. #if defined(_MSC_VER)
  4. # if _MSC_VER < 1900
  5. # define MSGPACK_USE_CPP03
  6. # endif
  7. #elif (__cplusplus < 201103L)
  8. # define MSGPACK_USE_CPP03
  9. #endif
  10. #if defined(_MSVC_LANG)
  11. # define MSGPACK_CPP_VERSION _MSVC_LANG
  12. #else
  13. # define MSGPACK_CPP_VERSION __cplusplus
  14. #endif
  15. #endif // MSGPACK_CPP_VERSION_HPP