]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/predef/include/boost/predef/os/unix.h
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / predef / include / 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
14/*`
15[heading `BOOST_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 BOOST_OS_UNIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
30
31#if defined(unix) || defined(__unix) || \
32 defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
33# undef BOOST_OS_UNIX
34# define BOOST_OS_UNIX BOOST_VERSION_NUMBER_AVAILABLE
35#endif
36
37#if BOOST_OS_UNIX
38# define BOOST_OS_UNIX_AVAILABLE
39#endif
40
41#define BOOST_OS_UNIX_NAME "Unix Environment"
42
43/*`
44[heading `BOOST_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 BOOST_OS_SVR4 BOOST_VERSION_NUMBER_NOT_AVAILABLE
59
60#if defined(__sysv__) || defined(__SVR4) || \
61 defined(__svr4__) || defined(_SYSTYPE_SVR4)
62# undef BOOST_OS_SVR4
63# define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_AVAILABLE
64#endif
65
66#if BOOST_OS_SVR4
67# define BOOST_OS_SVR4_AVAILABLE
68#endif
69
70#define BOOST_OS_SVR4_NAME "SVR4 Environment"
71
72#endif
73
74#include <boost/predef/detail/test.h>
75BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,BOOST_OS_UNIX_NAME)
76BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4,BOOST_OS_SVR4_NAME)