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
14/*`
15[heading `BOOST_OS_LINUX`]
16
17[@http://en.wikipedia.org/wiki/Linux Linux] operating system.
18
19[table
20 [[__predef_symbol__] [__predef_version__]]
21
22 [[`linux`] [__predef_detection__]]
23 [[`__linux`] [__predef_detection__]]
24 [[`__linux__`] [__predef_detection__]]
25 [[`__gnu_linux__`] [__predef_detection__]]
26 ]
27 */
28
29#define BOOST_OS_LINUX BOOST_VERSION_NUMBER_NOT_AVAILABLE
30
31#if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
32 defined(linux) || defined(__linux) || \
33 defined(__linux__) || defined(__gnu_linux__) \
34 )
35# undef BOOST_OS_LINUX
36# define BOOST_OS_LINUX BOOST_VERSION_NUMBER_AVAILABLE
37#endif
38
39#if BOOST_OS_LINUX
40# define BOOST_OS_LINUX_AVAILABLE
41# include <boost/predef/detail/os_detected.h>
42#endif
43
44#define BOOST_OS_LINUX_NAME "Linux"
45
46#endif
47
48#include <boost/predef/detail/test.h>
49BOOST_PREDEF_DECLARE_TEST(BOOST_OS_LINUX,BOOST_OS_LINUX_NAME)
50