github.com/searKing/golang/go@v1.2.117/runtime/cgosymbolizer/include/boost/predef/os/linux.h (about)

     1  /*
     2  Copyright Rene Rivera 2008-2015
     3  Distributed under the Boost Software License, Version 1.0.
     4  (See accompanying file LICENSE_1_0.txt or copy at
     5  http://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  /* tag::reference[]
    15  = `BOOST_OS_LINUX`
    16  
    17  http://en.wikipedia.org/wiki/Linux[Linux] operating system.
    18  
    19  [options="header"]
    20  |===
    21  | {predef_symbol} | {predef_version}
    22  
    23  | `linux` | {predef_detection}
    24  | `+__linux+` | {predef_detection}
    25  | `+__linux__+` | {predef_detection}
    26  | `+__gnu_linux__+` | {predef_detection}
    27  |===
    28  */ // end::reference[]
    29  
    30  #define BOOST_OS_LINUX BOOST_VERSION_NUMBER_NOT_AVAILABLE
    31  
    32  #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
    33      defined(linux) || defined(__linux) || \
    34      defined(__linux__) || defined(__gnu_linux__) \
    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>
    50  BOOST_PREDEF_DECLARE_TEST(BOOST_OS_LINUX,BOOST_OS_LINUX_NAME)