]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/predef/os/bsd/net.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_NET_H
9 #define BOOST_PREDEF_OS_BSD_NET_H
11 #include <boost/predef/os/bsd.h>
14 [heading `BOOST_OS_BSD_NET`]
16 [@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system.
19 [[__predef_symbol__] [__predef_version__]]
21 [[`__NETBSD__`] [__predef_detection__]]
22 [[`__NetBSD__`] [__predef_detection__]]
24 [[`__NETBSD_version`] [V.R.P]]
25 [[`NetBSD0_8`] [0.8.0]]
26 [[`NetBSD0_9`] [0.9.0]]
27 [[`NetBSD1_0`] [1.0.0]]
28 [[`__NetBSD_Version`] [V.R.P]]
32 #define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_NOT_AVAILABLE
34 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
35 defined(__NETBSD__) || defined(__NetBSD__) \
37 # ifndef BOOST_OS_BSD_AVAILABLE
38 # define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
39 # define BOOST_OS_BSD_AVAILABLE
41 # undef BOOST_OS_BSD_NET
42 # if defined(__NETBSD__)
43 # if defined(__NETBSD_version)
44 # if __NETBSD_version < 500000
45 # define BOOST_OS_BSD_NET \
46 BOOST_PREDEF_MAKE_10_VRP000(__NETBSD_version)
48 # define BOOST_OS_BSD_NET \
49 BOOST_PREDEF_MAKE_10_VRR000(__NETBSD_version)
52 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
54 # elif defined(__NetBSD__)
55 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_8)
56 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,8,0)
58 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_9)
59 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,9,0)
61 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD1_0)
62 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(1,0,0)
64 # if !defined(BOOST_OS_BSD_NET) && defined(__NetBSD_Version)
65 # define BOOST_OS_BSD_NET \
66 BOOST_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
68 # if !defined(BOOST_OS_BSD_NET)
69 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
75 # define BOOST_OS_BSD_NET_AVAILABLE
76 # include <boost/predef/detail/os_detected.h>
79 #define BOOST_OS_BSD_NET_NAME "DragonFly BSD"
83 #include <boost/predef/detail/test.h>
84 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_NET
,BOOST_OS_BSD_NET_NAME
)