MessagePack for C
Loading...
Searching...
No Matches
net.h
Go to the documentation of this file.
1/*
2Copyright Rene Rivera 2012-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef MSGPACK_PREDEF_OS_BSD_NET_H
9#define MSGPACK_PREDEF_OS_BSD_NET_H
10
12
13/*`
14[heading `MSGPACK_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 MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
33
34#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
35 defined(__NETBSD__) || defined(__NetBSD__) \
36 )
37# ifndef MSGPACK_OS_BSD_AVAILABLE
38# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
39# define MSGPACK_OS_BSD_AVAILABLE
40# endif
41# undef MSGPACK_OS_BSD_NET
42# if defined(__NETBSD__)
43# if defined(__NETBSD_version)
44# if __NETBSD_version < 500000
45# define MSGPACK_OS_BSD_NET \
46 MSGPACK_PREDEF_MAKE_10_VRP000(__NETBSD_version)
47# else
48# define MSGPACK_OS_BSD_NET \
49 MSGPACK_PREDEF_MAKE_10_VRR000(__NETBSD_version)
50# endif
51# else
52# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
53# endif
54# elif defined(__NetBSD__)
55# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_8)
56# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,8,0)
57# endif
58# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD0_9)
59# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(0,9,0)
60# endif
61# if !defined(MSGPACK_OS_BSD_NET) && defined(NetBSD1_0)
62# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER(1,0,0)
63# endif
64# if !defined(MSGPACK_OS_BSD_NET) && defined(__NetBSD_Version)
65# define MSGPACK_OS_BSD_NET \
66 MSGPACK_PREDEF_MAKE_10_VVRR00PP00(__NetBSD_Version)
67# endif
68# if !defined(MSGPACK_OS_BSD_NET)
69# define MSGPACK_OS_BSD_NET MSGPACK_VERSION_NUMBER_AVAILABLE
70# endif
71# endif
72#endif
73
74#if MSGPACK_OS_BSD_NET
75# define MSGPACK_OS_BSD_NET_AVAILABLE
77#endif
78
79#define MSGPACK_OS_BSD_NET_NAME "DragonFly BSD"
80
81#endif
82
#define MSGPACK_OS_BSD_NET
Definition net.h:32
#define MSGPACK_OS_BSD_NET_NAME
Definition net.h:79
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13