linux.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. Copyright Rene Rivera 2008-2015
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef MSGPACK_PREDEF_OS_LINUX_H
  8. #define MSGPACK_PREDEF_OS_LINUX_H
  9. #include <msgpack/predef/version_number.h>
  10. #include <msgpack/predef/make.h>
  11. /*`
  12. [heading `MSGPACK_OS_LINUX`]
  13. [@http://en.wikipedia.org/wiki/Linux Linux] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`linux`] [__predef_detection__]]
  17. [[`__linux`] [__predef_detection__]]
  18. ]
  19. */
  20. #define MSGPACK_OS_LINUX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
  21. #if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
  22. defined(linux) || defined(__linux) \
  23. )
  24. # undef MSGPACK_OS_LINUX
  25. # define MSGPACK_OS_LINUX MSGPACK_VERSION_NUMBER_AVAILABLE
  26. #endif
  27. #if MSGPACK_OS_LINUX
  28. # define MSGPACK_OS_LINUX_AVAILABLE
  29. # include <msgpack/predef/detail/os_detected.h>
  30. #endif
  31. #define MSGPACK_OS_LINUX_NAME "Linux"
  32. #endif
  33. #include <msgpack/predef/detail/test.h>
  34. MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_LINUX,MSGPACK_OS_LINUX_NAME)