]> git.donarmstrong.com Git - rsem.git/blob - boost/predef/os/bsd/net.h
2a34538996f30b08babe7a7c7ab973202cac91e1
[rsem.git] / boost / predef / os / bsd / net.h
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
8 #ifndef BOOST_PREDEF_OS_BSD_NET_H
9 #define BOOST_PREDEF_OS_BSD_NET_H
10
11 #include <boost/predef/os/bsd.h>
12
13 /*`
14 [heading `BOOST_OS_BSD_NET`]
15
16 [@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system.
17
18 [table
19     [[__predef_symbol__] [__predef_version__]]
20
21     [[`__NETBSD__`] [__predef_detection__]]
22     [[`__NetBSD__`] [__predef_detection__]]
23
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]]
29     ]
30  */
31
32 #define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_NOT_AVAILABLE
33
34 #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
35     defined(__NETBSD__) || defined(__NetBSD__) \
36     )
37 #   ifndef BOOST_OS_BSD_AVAILABLE
38 #       define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
39 #       define BOOST_OS_BSD_AVAILABLE
40 #   endif
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)
47 #           else
48 #               define BOOST_OS_BSD_NET \
49                     BOOST_PREDEF_MAKE_10_VRR000(__NETBSD_version)
50 #           endif
51 #       else
52 #           define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
53 #       endif
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)
57 #       endif
58 #       if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_9)
59 #           define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,9,0)
60 #       endif
61 #       if !defined(BOOST_OS_BSD_NET) && defined(NetBSD1_0)
62 #           define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(1,0,0)
63 #       endif
64 #       if !defined(BOOST_OS_BSD_NET) && defined(__NetBSD_Version)
65 #           define BOOST_OS_BSD_NET \
66                 BOOST_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
67 #       endif
68 #       if !defined(BOOST_OS_BSD_NET)
69 #           define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
70 #       endif
71 #   endif
72 #endif
73
74 #if BOOST_OS_BSD_NET
75 #   define BOOST_OS_BSD_NET_AVAILABLE
76 #   include <boost/predef/detail/os_detected.h>
77 #endif
78
79 #define BOOST_OS_BSD_NET_NAME "DragonFly BSD"
80
81 #include <boost/predef/detail/test.h>
82 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_NET,BOOST_OS_BSD_NET_NAME)
83
84 #endif