File indexing completed on 2025-01-18 09:48:06
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef BOOST_PREDEF_OS_BSD_NET_H
0009 #define BOOST_PREDEF_OS_BSD_NET_H
0010
0011 #include <boost/predef/os/bsd.h>
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033 #define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_NOT_AVAILABLE
0034
0035 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
0036 defined(__NETBSD__) || defined(__NetBSD__) \
0037 )
0038 # ifndef BOOST_OS_BSD_AVAILABLE
0039 # undef BOOST_OS_BSD
0040 # define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
0041 # define BOOST_OS_BSD_AVAILABLE
0042 # endif
0043 # undef BOOST_OS_BSD_NET
0044 # if defined(__NETBSD__)
0045 # if defined(__NETBSD_version)
0046 # if __NETBSD_version < 500000
0047 # define BOOST_OS_BSD_NET \
0048 BOOST_PREDEF_MAKE_10_VRP000(__NETBSD_version)
0049 # else
0050 # define BOOST_OS_BSD_NET \
0051 BOOST_PREDEF_MAKE_10_VRR000(__NETBSD_version)
0052 # endif
0053 # else
0054 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
0055 # endif
0056 # elif defined(__NetBSD__)
0057 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_8)
0058 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,8,0)
0059 # endif
0060 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_9)
0061 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,9,0)
0062 # endif
0063 # if !defined(BOOST_OS_BSD_NET) && defined(NetBSD1_0)
0064 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(1,0,0)
0065 # endif
0066 # if !defined(BOOST_OS_BSD_NET) && defined(__NetBSD_Version)
0067 # define BOOST_OS_BSD_NET \
0068 BOOST_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
0069 # endif
0070 # if !defined(BOOST_OS_BSD_NET)
0071 # define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
0072 # endif
0073 # endif
0074 #endif
0075
0076 #if BOOST_OS_BSD_NET
0077 # define BOOST_OS_BSD_NET_AVAILABLE
0078 # include <boost/predef/detail/os_detected.h>
0079 #endif
0080
0081 #define BOOST_OS_BSD_NET_NAME "NetBSD"
0082
0083 #endif
0084
0085 #include <boost/predef/detail/test.h>
0086 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_NET,BOOST_OS_BSD_NET_NAME)