MessagePack for C
unix.h
Go to the documentation of this file.
1 /*
2 Copyright Rene Rivera 2008-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_UNIX_H
9 #define MSGPACK_PREDEF_OS_UNIX_H
10 
12 #include <msgpack/predef/make.h>
13 
14 /*`
15 [heading `MSGPACK_OS_UNIX`]
16 
17 [@http://en.wikipedia.org/wiki/Unix Unix Environment] operating system.
18 
19 [table
20  [[__predef_symbol__] [__predef_version__]]
21 
22  [[`unix`] [__predef_detection__]]
23  [[`__unix`] [__predef_detection__]]
24  [[`_XOPEN_SOURCE`] [__predef_detection__]]
25  [[`_POSIX_SOURCE`] [__predef_detection__]]
26  ]
27  */
28 
29 #define MSGPACK_OS_UNIX MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
30 
31 #if defined(unix) || defined(__unix) || \
32  defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
33 # undef MSGPACK_OS_UNIX
34 # define MSGPACK_OS_UNIX MSGPACK_VERSION_NUMBER_AVAILABLE
35 #endif
36 
37 #if MSGPACK_OS_UNIX
38 # define MSGPACK_OS_UNIX_AVAILABLE
39 #endif
40 
41 #define MSGPACK_OS_UNIX_NAME "Unix Environment"
42 
43 /*`
44 [heading `MSGPACK_OS_SVR4`]
45 
46 [@http://en.wikipedia.org/wiki/UNIX_System_V SVR4 Environment] operating system.
47 
48 [table
49  [[__predef_symbol__] [__predef_version__]]
50 
51  [[`__sysv__`] [__predef_detection__]]
52  [[`__SVR4`] [__predef_detection__]]
53  [[`__svr4__`] [__predef_detection__]]
54  [[`_SYSTYPE_SVR4`] [__predef_detection__]]
55  ]
56  */
57 
58 #define MSGPACK_OS_SVR4 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
59 
60 #if defined(__sysv__) || defined(__SVR4) || \
61  defined(__svr4__) || defined(_SYSTYPE_SVR4)
62 # undef MSGPACK_OS_SVR4
63 # define MSGPACK_OS_SVR4 MSGPACK_VERSION_NUMBER_AVAILABLE
64 #endif
65 
66 #if MSGPACK_OS_SVR4
67 # define MSGPACK_OS_SVR4_AVAILABLE
68 #endif
69 
70 #define MSGPACK_OS_SVR4_NAME "SVR4 Environment"
71 
72 #endif
73 
#define MSGPACK_OS_UNIX_NAME
Definition: unix.h:41
#define MSGPACK_OS_SVR4_NAME
Definition: unix.h:70
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition: test.h:13
#define MSGPACK_OS_SVR4
Definition: unix.h:58
#define MSGPACK_OS_UNIX
Definition: unix.h:29