]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
1 | /* |
2 | * Copyright (C) 2017 James E. King III | |
3 | * | |
4 | * Distributed under the Boost Software License, Version 1.0. | |
5 | * (See accompanying file LICENSE_1_0.txt or copy at | |
6 | * http://www.boost.org/LICENSE_1_0.txt) | |
7 | */ | |
8 | ||
9 | #ifndef BOOST_PREDEF_LIBRARY_C_CLOUDABI_H | |
10 | #define BOOST_PREDEF_LIBRARY_C_CLOUDABI_H | |
11 | ||
12 | #include <boost/predef/version_number.h> | |
13 | #include <boost/predef/make.h> | |
14 | ||
15 | #include <boost/predef/library/c/_prefix.h> | |
16 | ||
17 | #if defined(__CloudABI__) | |
18 | #include <stddef.h> | |
19 | #endif | |
20 | ||
f67539c2 TL |
21 | /* tag::reference[] |
22 | = `BOOST_LIB_C_CLOUDABI` | |
b32b8144 | 23 | |
f67539c2 | 24 | https://github.com/NuxiNL/cloudlibc[cloudlibc] - CloudABI's standard C library. |
b32b8144 FG |
25 | Version number available as major, and minor. |
26 | ||
f67539c2 TL |
27 | [options="header"] |
28 | |=== | |
29 | | {predef_symbol} | {predef_version} | |
b32b8144 | 30 | |
f67539c2 | 31 | | `+__cloudlibc__+` | {predef_detection} |
b32b8144 | 32 | |
f67539c2 TL |
33 | | `+__cloudlibc_major__+`, `+__cloudlibc_minor__+` | V.R.0 |
34 | |=== | |
35 | */ // end::reference[] | |
b32b8144 FG |
36 | |
37 | #define BOOST_LIB_C_CLOUDABI BOOST_VERSION_NUMBER_NOT_AVAILABLE | |
38 | ||
39 | #if defined(__cloudlibc__) | |
40 | # undef BOOST_LIB_C_CLOUDABI | |
41 | # define BOOST_LIB_C_CLOUDABI \ | |
42 | BOOST_VERSION_NUMBER(__cloudlibc_major__,__cloudlibc_minor__,0) | |
43 | #endif | |
44 | ||
45 | #if BOOST_LIB_C_CLOUDABI | |
46 | # define BOOST_LIB_C_CLOUDABI_AVAILABLE | |
47 | #endif | |
48 | ||
49 | #define BOOST_LIB_C_CLOUDABI_NAME "cloudlibc" | |
50 | ||
51 | #endif | |
52 | ||
53 | #include <boost/predef/detail/test.h> | |
54 | BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_CLOUDABI,BOOST_LIB_C_CLOUDABI_NAME) |