free.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. Copyright Redshift Software, Inc. 2012-2013
  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_BSD_FREE_H
  8. #define BOOST_PREDEF_OS_BSD_FREE_H
  9. #include <boost/predef/os/bsd.h>
  10. /*`
  11. [heading `BOOST_OS_BSD_FREE`]
  12. [@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system.
  13. [table
  14. [[__predef_symbol__] [__predef_version__]]
  15. [[`__FreeBSD__`] [__predef_detection__]]
  16. [[`__FreeBSD_version`] [V.R.P]]
  17. ]
  18. */
  19. #define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_NOT_AVAILABLE
  20. #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
  21. defined(__FreeBSD__) \
  22. )
  23. # ifndef BOOST_OS_BSD_AVAILABLE
  24. # define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
  25. # define BOOST_OS_BSD_AVAILABLE
  26. # endif
  27. # undef BOOST_OS_BSD_FREE
  28. # if defined(__FreeBSD_version)
  29. # if __FreeBSD_version < 500000
  30. # define BOOST_OS_BSD_FREE \
  31. BOOST_PREDEF_MAKE_10_VRP000(__FreeBSD_version)
  32. # else
  33. # define BOOST_OS_BSD_FREE \
  34. BOOST_PREDEF_MAKE_10_VRR000(__FreeBSD_version)
  35. # endif
  36. # else
  37. # define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_AVAILABLE
  38. # endif
  39. #endif
  40. #if BOOST_OS_BSD_FREE
  41. # define BOOST_OS_BSD_FREE_AVAILABLE
  42. # include <boost/predef/detail/os_detected.h>
  43. #endif
  44. #define BOOST_OS_BSD_FREE_NAME "Free BSD"
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_FREE,BOOST_OS_BSD_FREE_NAME)
  47. #endif