annotate DEPENDENCIES/generic/include/boost/system/api_config.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // boost/system/api_config.hpp -------------------------------------------------------//
Chris@16 2
Chris@16 3 // Copyright Beman Dawes 2003, 2006, 2010
Chris@16 4
Chris@16 5 // Distributed under the Boost Software License, Version 1.0.
Chris@16 6 // See http://www.boost.org/LICENSE_1_0.txt
Chris@16 7
Chris@16 8 // See http://www.boost.org/libs/system for documentation.
Chris@16 9
Chris@16 10 //--------------------------------------------------------------------------------------//
Chris@16 11
Chris@16 12 // Boost.System calls operating system API functions to implement system error category
Chris@16 13 // functions. Usually there is no question as to which API is to be used.
Chris@16 14 //
Chris@16 15 // In the case of MinGW or Cygwin/MinGW, however, both POSIX and Windows API's are
Chris@16 16 // available. Chaos ensues if other code thinks one is in use when Boost.System was
Chris@16 17 // actually built with the other. This header centralizes the API choice and prevents
Chris@16 18 // user definition of API macros, thus elminating the possibility of mismatches and the
Chris@16 19 // need to test configurations with little or no practical value.
Chris@16 20 //
Chris@16 21
Chris@16 22 //--------------------------------------------------------------------------------------//
Chris@16 23
Chris@16 24 #ifndef BOOST_SYSTEM_API_CONFIG_HPP
Chris@16 25 #define BOOST_SYSTEM_API_CONFIG_HPP
Chris@16 26
Chris@16 27 # if defined(BOOST_POSIX_API) || defined(BOOST_WINDOWS_API)
Chris@16 28 # error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported
Chris@16 29 # endif
Chris@16 30
Chris@16 31 // BOOST_POSIX_API or BOOST_WINDOWS_API specify which API to use
Chris@16 32 // Cygwin/MinGW does not predefine _WIN32.
Chris@16 33 // Standalone MinGW and all other known Windows compilers do predefine _WIN32
Chris@16 34 // Compilers that predefine _WIN32 or __MINGW32__ do so for Windows 64-bit builds too.
Chris@16 35
Chris@16 36 # if defined(_WIN32) || defined(__CYGWIN__) // Windows default, including MinGW and Cygwin
Chris@16 37 # define BOOST_WINDOWS_API
Chris@16 38 # else
Chris@16 39 # define BOOST_POSIX_API
Chris@16 40 # endif
Chris@16 41
Chris@16 42 #endif // BOOST_SYSTEM_API_CONFIG_HPP