整理
This commit is contained in:
13
include/boost/predef/library/c/_prefix.h
Normal file
13
include/boost/predef/library/c/_prefix.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2013
|
||||
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_LIBRARY_C__PREFIX_H
|
||||
#define BOOST_PREDEF_LIBRARY_C__PREFIX_H
|
||||
|
||||
#include <boost/predef/detail/_cassert.h>
|
||||
|
||||
#endif
|
||||
54
include/boost/predef/library/c/cloudabi.h
Normal file
54
include/boost/predef/library/c/cloudabi.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (C) 2017 James E. King III
|
||||
*
|
||||
* 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_LIBRARY_C_CLOUDABI_H
|
||||
#define BOOST_PREDEF_LIBRARY_C_CLOUDABI_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
#include <boost/predef/library/c/_prefix.h>
|
||||
|
||||
#if defined(__CloudABI__)
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_LIB_C_CLOUDABI`
|
||||
|
||||
https://github.com/NuxiNL/cloudlibc[cloudlibc] - CloudABI's standard C library.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__cloudlibc__+` | {predef_detection}
|
||||
|
||||
| `+__cloudlibc_major__+`, `+__cloudlibc_minor__+` | V.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_LIB_C_CLOUDABI BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__cloudlibc__)
|
||||
# undef BOOST_LIB_C_CLOUDABI
|
||||
# define BOOST_LIB_C_CLOUDABI \
|
||||
BOOST_VERSION_NUMBER(__cloudlibc_major__,__cloudlibc_minor__,0)
|
||||
#endif
|
||||
|
||||
#if BOOST_LIB_C_CLOUDABI
|
||||
# define BOOST_LIB_C_CLOUDABI_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LIB_C_CLOUDABI_NAME "cloudlibc"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_CLOUDABI,BOOST_LIB_C_CLOUDABI_NAME)
|
||||
62
include/boost/predef/library/c/gnu.h
Normal file
62
include/boost/predef/library/c/gnu.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
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_LIBRARY_C_GNU_H
|
||||
#define BOOST_PREDEF_LIBRARY_C_GNU_H
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
#include <boost/predef/library/c/_prefix.h>
|
||||
|
||||
#if defined(__STDC__)
|
||||
#include <stddef.h>
|
||||
#elif defined(__cplusplus)
|
||||
#include <cstddef>
|
||||
#endif
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_LIB_C_GNU`
|
||||
|
||||
http://en.wikipedia.org/wiki/Glibc[GNU glibc] Standard C library.
|
||||
Version number available as major, and minor.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__GLIBC__+` | {predef_detection}
|
||||
| `+__GNU_LIBRARY__+` | {predef_detection}
|
||||
|
||||
| `+__GLIBC__+`, `+__GLIBC_MINOR__+` | V.R.0
|
||||
| `+__GNU_LIBRARY__+`, `+__GNU_LIBRARY_MINOR__+` | V.R.0
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_LIB_C_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__GLIBC__) || defined(__GNU_LIBRARY__)
|
||||
# undef BOOST_LIB_C_GNU
|
||||
# if defined(__GLIBC__)
|
||||
# define BOOST_LIB_C_GNU \
|
||||
BOOST_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0)
|
||||
# else
|
||||
# define BOOST_LIB_C_GNU \
|
||||
BOOST_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_LIB_C_GNU
|
||||
# define BOOST_LIB_C_GNU_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LIB_C_GNU_NAME "GNU"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_GNU,BOOST_LIB_C_GNU_NAME)
|
||||
48
include/boost/predef/library/c/uc.h
Normal file
48
include/boost/predef/library/c/uc.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
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_LIBRARY_C_UC_H
|
||||
#define BOOST_PREDEF_LIBRARY_C_UC_H
|
||||
|
||||
#include <boost/predef/library/c/_prefix.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_LIB_C_UC`
|
||||
|
||||
http://en.wikipedia.org/wiki/Uclibc[uClibc] Standard C library.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__UCLIBC__+` | {predef_detection}
|
||||
|
||||
| `+__UCLIBC_MAJOR__+`, `+__UCLIBC_MINOR__+`, `+__UCLIBC_SUBLEVEL__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_LIB_C_UC BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__UCLIBC__)
|
||||
# undef BOOST_LIB_C_UC
|
||||
# define BOOST_LIB_C_UC BOOST_VERSION_NUMBER(\
|
||||
__UCLIBC_MAJOR__,__UCLIBC_MINOR__,__UCLIBC_SUBLEVEL__)
|
||||
#endif
|
||||
|
||||
#if BOOST_LIB_C_UC
|
||||
# define BOOST_LIB_C_UC_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LIB_C_UC_NAME "uClibc"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_UC,BOOST_LIB_C_UC_NAME)
|
||||
48
include/boost/predef/library/c/vms.h
Normal file
48
include/boost/predef/library/c/vms.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
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_LIBRARY_C_VMS_H
|
||||
#define BOOST_PREDEF_LIBRARY_C_VMS_H
|
||||
|
||||
#include <boost/predef/library/c/_prefix.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_LIB_C_VMS`
|
||||
|
||||
VMS libc Standard C library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__CRTL_VER+` | {predef_detection}
|
||||
|
||||
| `+__CRTL_VER+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_LIB_C_VMS BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__CRTL_VER)
|
||||
# undef BOOST_LIB_C_VMS
|
||||
# define BOOST_LIB_C_VMS BOOST_PREDEF_MAKE_10_VVRR0PP00(__CRTL_VER)
|
||||
#endif
|
||||
|
||||
#if BOOST_LIB_C_VMS
|
||||
# define BOOST_LIB_C_VMS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LIB_C_VMS_NAME "VMS"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_VMS,BOOST_LIB_C_VMS_NAME)
|
||||
57
include/boost/predef/library/c/zos.h
Normal file
57
include/boost/predef/library/c/zos.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright Rene Rivera 2008-2015
|
||||
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_LIBRARY_C_ZOS_H
|
||||
#define BOOST_PREDEF_LIBRARY_C_ZOS_H
|
||||
|
||||
#include <boost/predef/library/c/_prefix.h>
|
||||
|
||||
#include <boost/predef/version_number.h>
|
||||
#include <boost/predef/make.h>
|
||||
|
||||
/* tag::reference[]
|
||||
= `BOOST_LIB_C_ZOS`
|
||||
|
||||
z/OS libc Standard C library.
|
||||
Version number available as major, minor, and patch.
|
||||
|
||||
[options="header"]
|
||||
|===
|
||||
| {predef_symbol} | {predef_version}
|
||||
|
||||
| `+__LIBREL__+` | {predef_detection}
|
||||
|
||||
| `+__LIBREL__+` | V.R.P
|
||||
| `+__TARGET_LIB__+` | V.R.P
|
||||
|===
|
||||
*/ // end::reference[]
|
||||
|
||||
#define BOOST_LIB_C_ZOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||
|
||||
#if defined(__LIBREL__)
|
||||
# undef BOOST_LIB_C_ZOS
|
||||
# if !defined(BOOST_LIB_C_ZOS) && defined(__LIBREL__)
|
||||
# define BOOST_LIB_C_ZOS BOOST_PREDEF_MAKE_0X_VRRPPPP(__LIBREL__)
|
||||
# endif
|
||||
# if !defined(BOOST_LIB_C_ZOS) && defined(__TARGET_LIB__)
|
||||
# define BOOST_LIB_C_ZOS BOOST_PREDEF_MAKE_0X_VRRPPPP(__TARGET_LIB__)
|
||||
# endif
|
||||
# if !defined(BOOST_LIB_C_ZOS)
|
||||
# define BOOST_LIB_C_ZOS BOOST_VERSION_NUMBER_AVAILABLE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BOOST_LIB_C_ZOS
|
||||
# define BOOST_LIB_C_ZOS_AVAILABLE
|
||||
#endif
|
||||
|
||||
#define BOOST_LIB_C_ZOS_NAME "z/OS"
|
||||
|
||||
#endif
|
||||
|
||||
#include <boost/predef/detail/test.h>
|
||||
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_ZOS,BOOST_LIB_C_ZOS_NAME)
|
||||
Reference in New Issue
Block a user