Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:09:47

0001 //  boost/system/api_config.hpp  -------------------------------------------------------//
0002 
0003 //  Copyright Beman Dawes 2003, 2006, 2010
0004 
0005 //  Distributed under the Boost Software License, Version 1.0.
0006 //  See http://www.boost.org/LICENSE_1_0.txt
0007 
0008 //  See http://www.boost.org/libs/system for documentation.
0009 
0010 //--------------------------------------------------------------------------------------//
0011 
0012 //  Boost.System calls operating system API functions to implement system error category
0013 //  functions. Usually there is no question as to which API is to be used.
0014 //
0015 //  In the case of MinGW or Cygwin/MinGW, however, both POSIX and Windows API's are
0016 //  available. Chaos ensues if other code thinks one is in use when Boost.System was
0017 //  actually built with the other. This header centralizes the API choice and prevents
0018 //  user definition of API macros, thus elminating the possibility of mismatches and the
0019 //  need to test configurations with little or no practical value.
0020 //
0021 
0022 //--------------------------------------------------------------------------------------//
0023 
0024 #ifndef BOOST_SYSTEM_API_CONFIG_HPP                  
0025 #define BOOST_SYSTEM_API_CONFIG_HPP
0026 
0027 # if defined(BOOST_POSIX_API) || defined(BOOST_WINDOWS_API)
0028 #   error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported
0029 # endif
0030 
0031 //  BOOST_POSIX_API or BOOST_WINDOWS_API specify which API to use
0032 //    Cygwin/MinGW does not predefine _WIN32.
0033 //    Standalone MinGW and all other known Windows compilers do predefine _WIN32
0034 //    Compilers that predefine _WIN32 or __MINGW32__ do so for Windows 64-bit builds too.
0035 
0036 # if defined(_WIN32) || defined(__CYGWIN__) // Windows default, including MinGW and Cygwin
0037 #   define BOOST_WINDOWS_API
0038 # else
0039 #   define BOOST_POSIX_API 
0040 # endif
0041                                      
0042 #endif  // BOOST_SYSTEM_API_CONFIG_HPP