2012-07-15 03:37:23 +00:00
|
|
|
/*
|
2015-07-01 17:19:29 -05:00
|
|
|
Copyright Rene Rivera 2012-2015
|
2012-07-15 03:37:23 +00:00
|
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
|
|
|
(See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
|
http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef BOOST_PREDEF_OS_BSD_NET_H
|
|
|
|
|
#define BOOST_PREDEF_OS_BSD_NET_H
|
|
|
|
|
|
2013-01-10 23:23:37 -06:00
|
|
|
#include <boost/predef/os/bsd.h>
|
|
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
/* tag::reference[]
|
|
|
|
|
= `BOOST_OS_BSD_NET`
|
2013-01-10 23:23:37 -06:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
http://en.wikipedia.org/wiki/Netbsd[NetBSD] operating system.
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
[options="header"]
|
|
|
|
|
|===
|
|
|
|
|
| {predef_symbol} | {predef_version}
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
| `+__NETBSD__+` | {predef_detection}
|
|
|
|
|
| `+__NetBSD__+` | {predef_detection}
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2019-12-31 16:14:17 -06:00
|
|
|
| `+__NETBSD_version+` | V.R.P
|
|
|
|
|
| `NetBSD0_8` | 0.8.0
|
|
|
|
|
| `NetBSD0_9` | 0.9.0
|
|
|
|
|
| `NetBSD1_0` | 1.0.0
|
|
|
|
|
| `+__NetBSD_Version+` | V.R.P
|
|
|
|
|
|===
|
|
|
|
|
*/ // end::reference[]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2014-07-06 21:49:24 -05:00
|
|
|
#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
|
2013-10-05 16:41:55 -05:00
|
|
|
defined(__NETBSD__) || defined(__NetBSD__) \
|
|
|
|
|
)
|
2013-09-26 22:15:27 -05:00
|
|
|
# ifndef BOOST_OS_BSD_AVAILABLE
|
2021-01-04 14:37:33 -06:00
|
|
|
# undef BOOST_OS_BSD
|
2013-01-18 21:25:30 -06:00
|
|
|
# define BOOST_OS_BSD BOOST_VERSION_NUMBER_AVAILABLE
|
2013-09-26 22:15:27 -05:00
|
|
|
# define BOOST_OS_BSD_AVAILABLE
|
2012-07-15 03:37:23 +00:00
|
|
|
# endif
|
|
|
|
|
# undef BOOST_OS_BSD_NET
|
|
|
|
|
# if defined(__NETBSD__)
|
|
|
|
|
# if defined(__NETBSD_version)
|
|
|
|
|
# if __NETBSD_version < 500000
|
|
|
|
|
# define BOOST_OS_BSD_NET \
|
|
|
|
|
BOOST_PREDEF_MAKE_10_VRP000(__NETBSD_version)
|
|
|
|
|
# else
|
|
|
|
|
# define BOOST_OS_BSD_NET \
|
|
|
|
|
BOOST_PREDEF_MAKE_10_VRR000(__NETBSD_version)
|
|
|
|
|
# endif
|
|
|
|
|
# else
|
2013-01-18 21:25:30 -06:00
|
|
|
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
|
2012-07-15 03:37:23 +00:00
|
|
|
# endif
|
|
|
|
|
# elif defined(__NetBSD__)
|
2013-01-18 21:25:30 -06:00
|
|
|
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_8)
|
2012-07-15 03:37:23 +00:00
|
|
|
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,8,0)
|
2013-01-18 21:25:30 -06:00
|
|
|
# endif
|
|
|
|
|
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD0_9)
|
2012-07-15 03:37:23 +00:00
|
|
|
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(0,9,0)
|
2013-01-18 21:25:30 -06:00
|
|
|
# endif
|
|
|
|
|
# if !defined(BOOST_OS_BSD_NET) && defined(NetBSD1_0)
|
2012-07-15 03:37:23 +00:00
|
|
|
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER(1,0,0)
|
2013-01-18 21:25:30 -06:00
|
|
|
# endif
|
|
|
|
|
# if !defined(BOOST_OS_BSD_NET) && defined(__NetBSD_Version)
|
2012-07-15 03:37:23 +00:00
|
|
|
# define BOOST_OS_BSD_NET \
|
|
|
|
|
BOOST_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
|
2013-01-18 21:25:30 -06:00
|
|
|
# endif
|
|
|
|
|
# if !defined(BOOST_OS_BSD_NET)
|
|
|
|
|
# define BOOST_OS_BSD_NET BOOST_VERSION_NUMBER_AVAILABLE
|
2012-07-15 03:37:23 +00:00
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2013-01-18 21:25:30 -06:00
|
|
|
#if BOOST_OS_BSD_NET
|
|
|
|
|
# define BOOST_OS_BSD_NET_AVAILABLE
|
2013-10-05 16:41:55 -05:00
|
|
|
# include <boost/predef/detail/os_detected.h>
|
2013-01-18 21:25:30 -06:00
|
|
|
#endif
|
|
|
|
|
|
2019-01-13 11:56:08 -06:00
|
|
|
#define BOOST_OS_BSD_NET_NAME "NetBSD"
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2015-06-29 18:49:33 -05:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
|
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD_NET,BOOST_OS_BSD_NET_NAME)
|