annotate DEPENDENCIES/generic/include/boost/detail/winapi/config.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // config.hpp --------------------------------------------------------------//
Chris@102 2
Chris@102 3 // Copyright 2013 Andrey Semashev
Chris@102 4
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // See http://www.boost.org/LICENSE_1_0.txt
Chris@102 7
Chris@102 8
Chris@102 9 #ifndef BOOST_DETAIL_WINAPI_CONFIG_HPP_INCLUDED_
Chris@102 10 #define BOOST_DETAIL_WINAPI_CONFIG_HPP_INCLUDED_
Chris@102 11
Chris@102 12 #include <boost/config.hpp>
Chris@102 13
Chris@102 14 #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@102 15 #pragma once
Chris@102 16 #endif
Chris@102 17
Chris@102 18 // These constants reflect _WIN32_WINNT_* macros from sdkddkver.h
Chris@102 19 // See also: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745%28v=vs.85%29.aspx#setting_winver_or__win32_winnt
Chris@102 20 #define BOOST_WINAPI_VERSION_NT4 0x0400
Chris@102 21 #define BOOST_WINAPI_VERSION_WIN2K 0x0500
Chris@102 22 #define BOOST_WINAPI_VERSION_WINXP 0x0501
Chris@102 23 #define BOOST_WINAPI_VERSION_WS03 0x0502
Chris@102 24 #define BOOST_WINAPI_VERSION_WIN6 0x0600
Chris@102 25 #define BOOST_WINAPI_VERSION_VISTA 0x0600
Chris@102 26 #define BOOST_WINAPI_VERSION_WS08 0x0600
Chris@102 27 #define BOOST_WINAPI_VERSION_LONGHORN 0x0600
Chris@102 28 #define BOOST_WINAPI_VERSION_WIN7 0x0601
Chris@102 29 #define BOOST_WINAPI_VERSION_WIN8 0x0602
Chris@102 30 #define BOOST_WINAPI_VERSION_WINBLUE 0x0603
Chris@102 31
Chris@102 32 #if !defined(BOOST_USE_WINAPI_VERSION)
Chris@102 33 #if defined(_WIN32_WINNT)
Chris@102 34 #define BOOST_USE_WINAPI_VERSION _WIN32_WINNT
Chris@102 35 #elif defined(WINVER)
Chris@102 36 #define BOOST_USE_WINAPI_VERSION WINVER
Chris@102 37 #else
Chris@102 38 // By default use Windows XP API
Chris@102 39 #define BOOST_USE_WINAPI_VERSION BOOST_WINAPI_VERSION_WINXP
Chris@102 40 #endif
Chris@102 41 #endif
Chris@102 42
Chris@102 43 #if defined(BOOST_USE_WINDOWS_H)
Chris@102 44 // We have to define the version macros so that windows.h provides the necessary symbols
Chris@102 45 #if !defined(_WIN32_WINNT)
Chris@102 46 #define _WIN32_WINNT BOOST_USE_WINAPI_VERSION
Chris@102 47 #endif
Chris@102 48 #if !defined(WINVER)
Chris@102 49 #define WINVER BOOST_USE_WINAPI_VERSION
Chris@102 50 #endif
Chris@102 51 #endif
Chris@102 52
Chris@102 53 #endif // BOOST_DETAIL_WINAPI_CONFIG_HPP_INCLUDED_