Last update, for now, of the predefs. They are all now documented and checked against current knowledge of detection.

git-svn-id: http://svn.boost.org/svn/boost/sandbox/predef@75949 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
Rene Rivera committed 2011-12-15 03:48:37 +00:00
1 parent 8bc199d45c
commit 86cc3136ad
61 files changed
+564 -415

No files matched your search

+3 -3
View File
@@ -12,9 +12,9 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_OS_`]
[heading `BOOST_OS_AIX`]
[@http://en.wikipedia.org/wiki/XXX AIX] operating system.
[@http://en.wikipedia.org/wiki/AIX_operating_system IBM AIX] operating system.
Version number available as major, minor, and patch.
*/
@@ -36,6 +36,6 @@ Version number available as major, minor, and patch.
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_AIX,"AIX")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_AIX,"IBM AIX")
#endif
+1 -1
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_AMIGAOS`]
[@http://en.wikipedia.org/wiki/XXX AmigaOS] operating system.
[@http://en.wikipedia.org/wiki/AmigaOS AmigaOS] operating system.
*/
#define BOOST_OS_AMIGAOS BOOST_VERSION_NUMBER(0,0,0)
+2 -2
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_BEOS`]
[@http://en.wikipedia.org/wiki/XXX Be] operating system.
[@http://en.wikipedia.org/wiki/BeOS BeOS] operating system.
*/
#define BOOST_OS_BEOS BOOST_VERSION_NUMBER(0,0,0)
@@ -25,6 +25,6 @@ http://www.boost.org/LICENSE_1_0.txt)
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BEOS,"Be OS")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BEOS,"BeOS")
#endif
+11 -10
View File
@@ -14,17 +14,17 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_BSD`]
[@http://en.wikipedia.org/wiki/XXX BSD] operating system.
[@http://en.wikipedia.org/wiki/Berkeley_Software_Distribution BSD] operating system.
BSD has various branch operating systems possible and each detected
individually. This detects the following variations and sets a specific
version number macro to match:
* `BOOST_OS_DRAGONFLY_BSD` [@http://en.wikipedia.org/wiki/XXX Dragonfly BSD]
* `BOOST_OS_FREE_BSD` [@http://en.wikipedia.org/wiki/XXX Free BSD]
* `BOOST_OS_BSDI_BSD` [@http://en.wikipedia.org/wiki/XXX BSDI]
* `BOOST_OS_NET_BSD` [@http://en.wikipedia.org/wiki/XXX Net BSD]
* `BOOST_OS_OPEN_BSD` [@http://en.wikipedia.org/wiki/XXX Open BSD]
* `BOOST_OS_DRAGONFLY_BSD` [@http://en.wikipedia.org/wiki/DragonFly_BSD DragonFly BSD]
* `BOOST_OS_FREE_BSD` [@http://en.wikipedia.org/wiki/Freebsd FreeBSD]
* `BOOST_OS_BSDI_BSD` [@http://en.wikipedia.org/wiki/BSD/OS BSDi BSD/OS]
* `BOOST_OS_NET_BSD` [@http://en.wikipedia.org/wiki/Netbsd NetBSD]
* `BOOST_OS_OPEN_BSD` [@http://en.wikipedia.org/wiki/Openbsd OpenBSD]
[note The general `BOOST_OS_BSD` is set in all cases to indicate some form
of BSD. If the above variants is detected the corresponding macro is also set.]
@@ -47,6 +47,7 @@ of BSD. If the above variants is detected the corresponding macro is also set.]
#undef BOOST_OS_FREE_BSD
#undef BOOST_OS_NET_BSD
#undef BOOST_OS_OPEN_BSD
#include <sys/param.h>
#if defined(BSD4_2)
#define BOOST_OS_BSD BOOST_VERSION_NUMBER(4,2,0)
#elif defined(BSD4_3)
@@ -148,10 +149,10 @@ of BSD. If the above variants is detected the corresponding macro is also set.]
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSD,"BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_DRAGONFLY_BSD,"Dragonfly BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_DRAGONFLY_BSD,"DragonFly BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_FREE_BSD,"Free BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSDI_BSD,"BSDI BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_NET_BSD,"Net BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_OPEN_BSD,"Open BSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_BSDI_BSD,"BSDi BSD/OS")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_NET_BSD,"NetBSD")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_OPEN_BSD,"OpenBSD")
#endif
+1 -1
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_CYGWIN`]
[@http://en.wikipedia.org/wiki/XXX Cygwin] operating system.
[@http://en.wikipedia.org/wiki/Cygwin Cygwin] evironment.
*/
#define BOOST_OS_CYGWIN BOOST_VERSION_NUMBER(0,0,0)
+1 -1
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_HPUX`]
[@http://en.wikipedia.org/wiki/XXX HP-UX] operating system.
[@http://en.wikipedia.org/wiki/HP-UX HP-UX] operating system.
*/
#define BOOST_OS_HPUX BOOST_VERSION_NUMBER(0,0,0)
+2 -2
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_IRIX`]
[@http://en.wikipedia.org/wiki/XXX Irix] operating system.
[@http://en.wikipedia.org/wiki/Irix IRIX] operating system.
*/
#define BOOST_OS_IRIX BOOST_VERSION_NUMBER(0,0,0)
@@ -25,6 +25,6 @@ http://www.boost.org/LICENSE_1_0.txt)
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IRIX,"Irix")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_IRIX,"IRIX")
#endif
+1 -1
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_LINUX`]
[@http://en.wikipedia.org/wiki/XXX Linux] operating system.
[@http://en.wikipedia.org/wiki/Linux Linux] operating system.
*/
#define BOOST_OS_LINUX BOOST_VERSION_NUMBER(0,0,0)
+2 -2
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_MACOS`]
[@http://en.wikipedia.org/wiki/XXX MacOS] operating system.
[@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system.
Versions \[9-10\] are specifically detected.
*/
@@ -31,6 +31,6 @@ Versions \[9-10\] are specifically detected.
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,"MacOS")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,"Mac OS")
#endif
+30
View File
@@ -0,0 +1,30 @@
/*
Copyright Redshift Software Inc 2011
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_OS400_H
#define BOOST_PREDEF_OS_OS400_H
#include <boost/predef/version_number.h>
#include <boost/predef/make.h>
/*`
[heading `BOOST_OS_OS400`]
[@http://en.wikipedia.org/wiki/IBM_i IBM OS/400] operating system.
*/
#define BOOST_OS_OS400 BOOST_VERSION_NUMBER(0,0,0)
#if defined(__OS400__)
#undef BOOST_OS_OS400
#define BOOST_OS_OS400 BOOST_VERSION_NUMBER(0,0,1)
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_OS400,"IBM OS/400")
#endif
+2 -2
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_QNX`]
[@http://en.wikipedia.org/wiki/XXX QNX-NTO] operating system.
[@http://en.wikipedia.org/wiki/QNX QNX] operating system.
Version number available as major, and minor if possible. And
version 4 is specifically detected.
*/
@@ -33,6 +33,6 @@ version 4 is specifically detected.
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_QNX,"QNX-NTO")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_QNX,"QNX")
#endif
+1 -1
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_SOLARIS`]
[@http://en.wikipedia.org/wiki/XXX Solaris] operating system.
[@http://en.wikipedia.org/wiki/Solaris_Operating_Environment Solaris] operating system.
*/
#define BOOST_OS_SOLARIS BOOST_VERSION_NUMBER(0,0,0)
+17 -2
View File
@@ -14,7 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_UNIX`]
[@http://en.wikipedia.org/wiki/XXX Unix] operating system.
[@http://en.wikipedia.org/wiki/Unix Unix Environment] operating system.
*/
#define BOOST_OS_UNIX BOOST_VERSION_NUMBER(0,0,0)
@@ -25,7 +25,22 @@ http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_OS_UNIX BOOST_VERSION_NUMBER(0,0,1)
#endif
/*`
[heading `BOOST_OS_SVR4`]
[@http://en.wikipedia.org/wiki/UNIX_System_V SVR4 Environment] operating system.
*/
#define BOOST_OS_SVR4 BOOST_VERSION_NUMBER(0,0,0)
#if defined(__sysv__) || defined(__SVR4) || \
defined(__svr4__) || defined(_SYSTYPE_SVR4)
#undef BOOST_OS_SVR4
#define BOOST_OS_SVR4 BOOST_VERSION_NUMBER(0,0,1)
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,"Unix")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,"Unix ENvironment")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4,"SVR4 Environment")
#endif
+35
View File
@@ -0,0 +1,35 @@
/*
Copyright Redshift Software Inc 2011
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_PREDEF_OS_VMS_H
#define BOOST_PREDEF_OS_VMS_H
#include <boost/predef/version_number.h>
#include <boost/predef/make.h>
/*`
[heading `BOOST_OS_VMS`]
[@http://en.wikipedia.org/wiki/Vms VMS] operating system.
Version number available as major, minor, and patch.
*/
#define BOOST_OS_VMS BOOST_VERSION_NUMBER(0,0,0)
#if defined(VMS) || defined(__VMS)
#undef BOOST_OS_VMS
#if defined(__VMS_VER)
#define BOOST_OS_VMS BOOST_PREDEF_MAKE_NN_NN_00_NN_00(__VMS_VER)
#else
#define BOOST_OS_VMS BOOST_VERSION_NUMBER(0,0,1)
#endif
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_VMS,"VMS")
#endif
+4 -3
View File
@@ -14,18 +14,19 @@ http://www.boost.org/LICENSE_1_0.txt)
/*`
[heading `BOOST_OS_WINDOWS`]
[@http://en.wikipedia.org/wiki/XXX Microsoft Windows] operating system.
[@http://en.wikipedia.org/wiki/Category:Microsoft_Windows Microsoft Windows] operating system.
*/
#define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER(0,0,0)
#if defined(_WIN32) || defined(_WIN64) || \
defined(__WIN32__) || defined(__TOS_WIN__)
defined(__WIN32__) || defined(__TOS_WIN__) || \
defined(__WINDOWS__)
#undef BOOST_OS_WINDOWS
#define BOOST_OS_WINDOWS BOOST_VERSION_NUMBER(0,0,1)
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_WINDOWS,"Windows")
BOOST_PREDEF_DECLARE_TEST(BOOST_OS_WINDOWS,"Microsoft Windows")
#endif