85 lines
2.6 KiB
C
85 lines
2.6 KiB
C
/*
|
|
Copyright Rene Rivera 2012-2015
|
|
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 MSGPACK_PREDEF_OS_BSD_NET_H
|
|
#define MSGPACK_PREDEF_OS_BSD_NET_H
|
|
|
|
#include <rpc/msgpack/predef/os/bsd.h>
|
|
|
|
/*`
|
|
[heading `MSGPACK_OS_BSD_NET`]
|
|
|
|
[@http://en.wikipedia.org/wiki/Netbsd NetBSD] operating system.
|
|
|
|
[table
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
[[`__NETBSD__`] [__predef_detection__]]
|
|
[[`__NetBSD__`] [__predef_detection__]]
|
|
|
|
[[`__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]]
|
|
]
|
|
*/
|
|
|
|
#define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
|
|
|
|
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
|
|
defined(__NETBSD__) || defined(__NetBSD__) \
|
|
)
|
|
# ifndef MSGPACK_OS_BSD_AVAILABLE
|
|
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
|
|
# define MSGPACK_OS_BSD_AVAILABLE
|
|
# endif
|
|
# undef MSGPACK_OS_BSD_NET
|
|
# if defined(__NETBSD__)
|
|
# if defined(__NETBSD_version)
|
|
# if __NETBSD_version < 500000
|
|
# define MSGPACK_OS_BSD_NET \
|
|
MSGPACK_PREDEF_MAKE_10_VRP000(__NETBSD_version)
|
|
# else
|
|
# define MSGPACK_OS_BSD_NET \
|
|
MSGPACK_PREDEF_MAKE_10_VRR000(__NETBSD_version)
|
|
# endif
|
|
# else
|
|
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
|
|
# endif
|
|
# elif defined(__NetBSD__)
|
|
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_8)
|
|
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,8,0)
|
|
# endif
|
|
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_9)
|
|
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,9,0)
|
|
# endif
|
|
# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD1_0)
|
|
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(1,0,0)
|
|
# endif
|
|
# if !defined(MSGPACK_OS_BSD_NET) && defined(__NetBSD_Version)
|
|
# define MSGPACK_OS_BSD_NET \
|
|
MSGPACK_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
|
|
# endif
|
|
# if !defined(MSGPACK_OS_BSD_NET)
|
|
# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#if MSGPACK_OS_BSD_NET
|
|
# define MSGPACK_OS_BSD_NET_AVAILABLE
|
|
# include <rpc/msgpack/predef/detail/os_detected.h>
|
|
#endif
|
|
|
|
#define MSGPACK_OS_BSD_NET_NAME "DragonFly BSD"
|
|
|
|
#endif
|
|
|
|
#include <rpc/msgpack/predef/detail/test.h>
|
|
MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_BSD_NET,MSGPACK_OS_BSD_NET_NAME)
|