]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/predef/os/unix.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / predef / os / unix.h
CommitLineData
7c673cae
FG
1/*
2Copyright Rene Rivera 2008-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 BOOST_PREDEF_OS_UNIX_H
9#define BOOST_PREDEF_OS_UNIX_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
f67539c2
TL
14/* tag::reference[]
15= `BOOST_OS_UNIX`
7c673cae 16
f67539c2 17http://en.wikipedia.org/wiki/Unix[Unix Environment] operating system.
7c673cae 18
f67539c2
TL
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
7c673cae 22
f67539c2
TL
23| `unix` | {predef_detection}
24| `+__unix+` | {predef_detection}
25| `+_XOPEN_SOURCE+` | {predef_detection}
26| `+_POSIX_SOURCE+` | {predef_detection}
27|===
28*/ // end::reference[]
7c673cae
FG
29
30#define BOOST_OS_UNIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
31
32#if defined(unix) || defined(__unix) || \
33 defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
34# undef BOOST_OS_UNIX
35# define BOOST_OS_UNIX BOOST_VERSION_NUMBER_AVAILABLE
36#endif
37
38#if BOOST_OS_UNIX
39# define BOOST_OS_UNIX_AVAILABLE
40#endif
41
42#define BOOST_OS_UNIX_NAME "Unix Environment"
43
f67539c2
TL
44/* tag::reference[]
45= `BOOST_OS_SVR4`
7c673cae 46
f67539c2 47http://en.wikipedia.org/wiki/UNIX_System_V[SVR4 Environment] operating system.
7c673cae 48
f67539c2
TL
49[options="header"]
50|===
51| {predef_symbol} | {predef_version}
7c673cae 52
f67539c2
TL
53| `+__sysv__+` | {predef_detection}
54| `+__SVR4+` | {predef_detection}
55| `+__svr4__+` | {predef_detection}
56| `+_SYSTYPE_SVR4+` | {predef_detection}
57|===
58*/ // end::reference[]
7c673cae
FG
59
60#define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_NOT_AVAILABLE
61
62#if defined(__sysv__) || defined(__SVR4) || \
63 defined(__svr4__) || defined(_SYSTYPE_SVR4)
64# undef BOOST_OS_SVR4
65# define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_AVAILABLE
66#endif
67
68#if BOOST_OS_SVR4
69# define BOOST_OS_SVR4_AVAILABLE
70#endif
71
72#define BOOST_OS_SVR4_NAME "SVR4 Environment"
73
74#endif
75
76#include <boost/predef/detail/test.h>
77BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,BOOST_OS_UNIX_NAME)
78BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4,BOOST_OS_SVR4_NAME)