Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2012-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_OS_BSD_FREE_H
0009 #define BOOST_PREDEF_OS_BSD_FREE_H
0010 
0011 #include <boost/predef/os/bsd.h>
0012 
0013 /* tag::reference[]
0014 = `BOOST_OS_BSD_FREE`
0015 
0016 http://en.wikipedia.org/wiki/Freebsd[FreeBSD] operating system.
0017 
0018 [options="header"]
0019 |===
0020 | {predef_symbol} | {predef_version}
0021 
0022 | `+__FreeBSD__+` | {predef_detection}
0023 
0024 | `+__FreeBSD_version+` | V.R.P
0025 |===
0026 */ // end::reference[]
0027 
0028 #define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_NOT_AVAILABLE
0029 
0030 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
0031     defined(__FreeBSD__) \
0032     )
0033 #   ifndef BOOST_OS_BSD_AVAILABLE
0034 #       undef BOOST_OS_BSD
0035 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
0036 #       define BOOST_OS_BSD_AVAILABLE
0037 #   endif
0038 #   undef BOOST_OS_BSD_FREE
0039 #   include <sys/param.h>
0040 #   if defined(__FreeBSD_version)
0041 #       if __FreeBSD_version == 491000
0042 #           define BOOST_OS_BSD_FREE \
0043                 BOOST_VERSION_NUMBER(4, 10, 0)
0044 #       elif __FreeBSD_version == 492000
0045 #           define BOOST_OS_BSD_FREE \
0046                 BOOST_VERSION_NUMBER(4, 11, 0)
0047 #       elif __FreeBSD_version < 500000
0048 #           define BOOST_OS_BSD_FREE \
0049                 BOOST_PREDEF_MAKE_10_VRPPPP(__FreeBSD_version)
0050 #       else
0051 #           define BOOST_OS_BSD_FREE \
0052                 BOOST_PREDEF_MAKE_10_VVRRPPP(__FreeBSD_version)
0053 #       endif
0054 #   else
0055 #       define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_AVAILABLE
0056 #   endif
0057 #endif
0058 
0059 #if BOOST_OS_BSD_FREE
0060 #   define BOOST_OS_BSD_FREE_AVAILABLE
0061 #   include <boost/predef/detail/os_detected.h>
0062 #endif
0063 
0064 #define BOOST_OS_BSD_FREE_NAME "Free BSD"
0065 
0066 #endif
0067 
0068 #include <boost/predef/detail/test.h>
0069 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_FREE,BOOST_OS_BSD_FREE_NAME)