]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/predef/include/boost/predef/os/unix.h
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)
8 #ifndef BOOST_PREDEF_OS_UNIX_H
9 #define BOOST_PREDEF_OS_UNIX_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_OS_UNIX`]
17 [@http://en.wikipedia.org/wiki/Unix Unix Environment] operating system.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`unix`] [__predef_detection__]]
23 [[`__unix`] [__predef_detection__]]
24 [[`_XOPEN_SOURCE`] [__predef_detection__]]
25 [[`_POSIX_SOURCE`] [__predef_detection__]]
29 #define BOOST_OS_UNIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
31 #if defined(unix) || defined(__unix) || \
32 defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
34 # define BOOST_OS_UNIX BOOST_VERSION_NUMBER_AVAILABLE
38 # define BOOST_OS_UNIX_AVAILABLE
41 #define BOOST_OS_UNIX_NAME "Unix Environment"
44 [heading `BOOST_OS_SVR4`]
46 [@http://en.wikipedia.org/wiki/UNIX_System_V SVR4 Environment] operating system.
49 [[__predef_symbol__] [__predef_version__]]
51 [[`__sysv__`] [__predef_detection__]]
52 [[`__SVR4`] [__predef_detection__]]
53 [[`__svr4__`] [__predef_detection__]]
54 [[`_SYSTYPE_SVR4`] [__predef_detection__]]
58 #define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_NOT_AVAILABLE
60 #if defined(__sysv__) || defined(__SVR4) || \
61 defined(__svr4__) || defined(_SYSTYPE_SVR4)
63 # define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_AVAILABLE
67 # define BOOST_OS_SVR4_AVAILABLE
70 #define BOOST_OS_SVR4_NAME "SVR4 Environment"
74 #include <boost/predef/detail/test.h>
75 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX
,BOOST_OS_UNIX_NAME
)
76 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4
,BOOST_OS_SVR4_NAME
)