Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:06

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_OS_UNIX_H
0009 #define BOOST_PREDEF_OS_UNIX_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_OS_UNIX`
0016 
0017 http://en.wikipedia.org/wiki/Unix[Unix Environment] operating system.
0018 
0019 [options="header"]
0020 |===
0021 | {predef_symbol} | {predef_version}
0022 
0023 | `unix` | {predef_detection}
0024 | `+__unix+` | {predef_detection}
0025 | `+_XOPEN_SOURCE+` | {predef_detection}
0026 | `+_POSIX_SOURCE+` | {predef_detection}
0027 |===
0028 */ // end::reference[]
0029 
0030 #define BOOST_OS_UNIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
0031 
0032 #if defined(unix) || defined(__unix) || \
0033     defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
0034 #   undef BOOST_OS_UNIX
0035 #   define BOOST_OS_UNIX BOOST_VERSION_NUMBER_AVAILABLE
0036 #endif
0037 
0038 #if BOOST_OS_UNIX
0039 #   define BOOST_OS_UNIX_AVAILABLE
0040 #endif
0041 
0042 #define BOOST_OS_UNIX_NAME "Unix Environment"
0043 
0044 /* tag::reference[]
0045 = `BOOST_OS_SVR4`
0046 
0047 http://en.wikipedia.org/wiki/UNIX_System_V[SVR4 Environment] operating system.
0048 
0049 [options="header"]
0050 |===
0051 | {predef_symbol} | {predef_version}
0052 
0053 | `+__sysv__+` | {predef_detection}
0054 | `+__SVR4+` | {predef_detection}
0055 | `+__svr4__+` | {predef_detection}
0056 | `+_SYSTYPE_SVR4+` | {predef_detection}
0057 |===
0058 */ // end::reference[]
0059 
0060 #define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_NOT_AVAILABLE
0061 
0062 #if defined(__sysv__) || defined(__SVR4) || \
0063     defined(__svr4__) || defined(_SYSTYPE_SVR4)
0064 #   undef BOOST_OS_SVR4
0065 #   define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_AVAILABLE
0066 #endif
0067 
0068 #if BOOST_OS_SVR4
0069 #   define BOOST_OS_SVR4_AVAILABLE
0070 #endif
0071 
0072 #define BOOST_OS_SVR4_NAME "SVR4 Environment"
0073 
0074 #endif
0075 
0076 #include <boost/predef/detail/test.h>
0077 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,BOOST_OS_UNIX_NAME)
0078 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4,BOOST_OS_SVR4_NAME)