]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/predef/os/bsd/free.h
2 Copyright Rene Rivera 2012-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)
8 #ifndef BOOST_PREDEF_OS_BSD_FREE_H
9 #define BOOST_PREDEF_OS_BSD_FREE_H
11 #include <boost/predef/os/bsd.h>
16 http://en.wikipedia.org/wiki/Freebsd[FreeBSD] operating system.
20 | {predef_symbol} | {predef_version}
22 | `+__FreeBSD__+` | {predef_detection}
24 | `+__FreeBSD_version+` | V.R.P
26 */ // end::reference[]
28 #define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_NOT_AVAILABLE
30 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
31 defined(__FreeBSD__) \
33 # ifndef BOOST_OS_BSD_AVAILABLE
35 # define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
36 # define BOOST_OS_BSD_AVAILABLE
38 # undef BOOST_OS_BSD_FREE
39 # include <sys/param.h>
40 # if defined(__FreeBSD_version)
41 # if __FreeBSD_version == 491000
42 # define BOOST_OS_BSD_FREE \
43 BOOST_VERSION_NUMBER(4, 10, 0)
44 # elif __FreeBSD_version == 492000
45 # define BOOST_OS_BSD_FREE \
46 BOOST_VERSION_NUMBER(4, 11, 0)
47 # elif __FreeBSD_version < 500000
48 # define BOOST_OS_BSD_FREE \
49 BOOST_PREDEF_MAKE_10_VRPPPP(__FreeBSD_version)
51 # define BOOST_OS_BSD_FREE \
52 BOOST_PREDEF_MAKE_10_VVRRPPP(__FreeBSD_version)
55 # define BOOST_OS_BSD_FREE BOOST_VERSION_NUMBER_AVAILABLE
60 # define BOOST_OS_BSD_FREE_AVAILABLE
61 # include <boost/predef/detail/os_detected.h>
64 #define BOOST_OS_BSD_FREE_NAME "Free BSD"
68 #include <boost/predef/detail/test.h>
69 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_FREE
,BOOST_OS_BSD_FREE_NAME
)