]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/predef/os/linux.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / predef / os / linux.h
CommitLineData
7c673cae
FG
1/*
2Copyright Rene Rivera 2008-2015
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_OS_LINUX_H
9#define BOOST_PREDEF_OS_LINUX_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
f67539c2
TL
14/* tag::reference[]
15= `BOOST_OS_LINUX`
7c673cae 16
f67539c2 17http://en.wikipedia.org/wiki/Linux[Linux] operating system.
7c673cae 18
f67539c2
TL
19[options="header"]
20|===
21| {predef_symbol} | {predef_version}
7c673cae 22
f67539c2
TL
23| `linux` | {predef_detection}
24| `+__linux+` | {predef_detection}
25| `+__linux__+` | {predef_detection}
26| `+__gnu_linux__+` | {predef_detection}
27|===
28*/ // end::reference[]
7c673cae
FG
29
30#define BOOST_OS_LINUX BOOST_VERSION_NUMBER_NOT_AVAILABLE
31
32#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
92f5a8d4
TL
33 defined(linux) || defined(__linux) || \
34 defined(__linux__) || defined(__gnu_linux__) \
7c673cae
FG
35 )
36# undef BOOST_OS_LINUX
37# define BOOST_OS_LINUX BOOST_VERSION_NUMBER_AVAILABLE
38#endif
39
40#if BOOST_OS_LINUX
41# define BOOST_OS_LINUX_AVAILABLE
42# include <boost/predef/detail/os_detected.h>
43#endif
44
45#define BOOST_OS_LINUX_NAME "Linux"
46
47#endif
48
49#include <boost/predef/detail/test.h>
50BOOST_PREDEF_DECLARE_TEST(BOOST_OS_LINUX,BOOST_OS_LINUX_NAME)