MessagePack for C
msgpack
predef
os
bsd
free.h
Go to the documentation of this file.
1
/*
2
Copyright Rene Rivera 2012-2015
3
Distributed under the Boost Software License, Version 1.0.
4
(See accompanying file LICENSE_1_0.txt or copy at
5
http://www.boost.org/LICENSE_1_0.txt)
6
*/
7
8
#ifndef MSGPACK_PREDEF_OS_BSD_FREE_H
9
#define MSGPACK_PREDEF_OS_BSD_FREE_H
10
11
#include <
msgpack/predef/os/bsd.h
>
12
13
/*`
14
[heading `MSGPACK_OS_BSD_FREE`]
15
16
[@http://en.wikipedia.org/wiki/Freebsd FreeBSD] operating system.
17
18
[table
19
[[__predef_symbol__] [__predef_version__]]
20
21
[[`__FreeBSD__`] [__predef_detection__]]
22
23
[[`__FreeBSD_version`] [V.R.P]]
24
]
25
*/
26
27
#define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
28
29
#if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
30
defined(__FreeBSD__) \
31
)
32
# ifndef MSGPACK_OS_BSD_AVAILABLE
33
# define MSGPACK_OS_BSD MSGPACK_VERSION_NUMBER_AVAILABLE
34
# define MSGPACK_OS_BSD_AVAILABLE
35
# endif
36
# undef MSGPACK_OS_BSD_FREE
37
# include <sys/param.h>
38
# if defined(__FreeBSD_version)
39
# if __FreeBSD_version == 491000
40
# define MSGPACK_OS_BSD_FREE \
41
MSGPACK_VERSION_NUMBER(4, 10, 0)
42
# elif __FreeBSD_version == 492000
43
# define MSGPACK_OS_BSD_FREE \
44
MSGPACK_VERSION_NUMBER(4, 11, 0)
45
# elif __FreeBSD_version < 500000
46
# define MSGPACK_OS_BSD_FREE \
47
MSGPACK_PREDEF_MAKE_10_VRPPPP(__FreeBSD_version)
48
# else
49
# define MSGPACK_OS_BSD_FREE \
50
MSGPACK_PREDEF_MAKE_10_VVRRPPP(__FreeBSD_version)
51
# endif
52
# else
53
# define MSGPACK_OS_BSD_FREE MSGPACK_VERSION_NUMBER_AVAILABLE
54
# endif
55
#endif
56
57
#if MSGPACK_OS_BSD_FREE
58
# define MSGPACK_OS_BSD_FREE_AVAILABLE
59
# include <
msgpack/predef/detail/os_detected.h
>
60
#endif
61
62
#define MSGPACK_OS_BSD_FREE_NAME "Free BSD"
63
64
#endif
65
66
#include <
msgpack/predef/detail/test.h
>
67
MSGPACK_PREDEF_DECLARE_TEST
(
MSGPACK_OS_BSD_FREE
,
MSGPACK_OS_BSD_FREE_NAME
)
bsd.h
MSGPACK_OS_BSD_FREE
#define MSGPACK_OS_BSD_FREE
Definition:
free.h:27
test.h
os_detected.h
MSGPACK_PREDEF_DECLARE_TEST
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition:
test.h:13
MSGPACK_OS_BSD_FREE_NAME
#define MSGPACK_OS_BSD_FREE_NAME
Definition:
free.h:62
Generated by
1.8.17