linux.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 BOOST_PREDEF_OS_LINUX_H
  8. #define BOOST_PREDEF_OS_LINUX_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_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. [[`__linux__`] [__predef_detection__]]
  19. [[`__gnu_linux__`] [__predef_detection__]]
  20. ]
  21. */
  22. #define BOOST_OS_LINUX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  24. defined(linux) || defined(__linux) || \
  25. defined(__linux__) || defined(__gnu_linux__) \
  26. )
  27. # undef BOOST_OS_LINUX
  28. # define BOOST_OS_LINUX BOOST_VERSION_NUMBER_AVAILABLE
  29. #endif
  30. #if BOOST_OS_LINUX
  31. # define BOOST_OS_LINUX_AVAILABLE
  32. # include <boost/predef/detail/os_detected.h>
  33. #endif
  34. #define BOOST_OS_LINUX_NAME "Linux"
  35. #endif
  36. #include <boost/predef/detail/test.h>
  37. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_LINUX,BOOST_OS_LINUX_NAME)