Back to home page

EIC code displayed by LXR

 
 

    


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

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_NET_H
0009 #define BOOST_PREDEF_OS_BSD_NET_H
0010 
0011 #include <boost/predef/os/bsd.h>
0012 
0013 /* tag::reference[]
0014 = `BOOST_OS_BSD_NET`
0015 
0016 http://en.wikipedia.org/wiki/Netbsd[NetBSD] operating system.
0017 
0018 [options="header"]
0019 |===
0020 | {predef_symbol} | {predef_version}
0021 
0022 | `+__NETBSD__+` | {predef_detection}
0023 | `+__NetBSD__+` | {predef_detection}
0024 
0025 | `+__NETBSD_version+` | V.R.P
0026 | `NetBSD0_8` | 0.8.0
0027 | `NetBSD0_9` | 0.9.0
0028 | `NetBSD1_0` | 1.0.0
0029 | `+__NetBSD_Version+` | V.R.P
0030 |===
0031 */ // end::reference[]
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)