annotate DEPENDENCIES/generic/include/boost/config/platform/win32.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 // (C) Copyright John Maddock 2001 - 2003.
Chris@16 2 // (C) Copyright Bill Kempf 2001.
Chris@16 3 // (C) Copyright Aleksey Gurtovoy 2003.
Chris@16 4 // (C) Copyright Rene Rivera 2005.
Chris@16 5 // Use, modification and distribution are subject to the
Chris@16 6 // Boost Software License, Version 1.0. (See accompanying file
Chris@16 7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8
Chris@16 9 // See http://www.boost.org for most recent version.
Chris@16 10
Chris@16 11 // Win32 specific config options:
Chris@16 12
Chris@16 13 #define BOOST_PLATFORM "Win32"
Chris@16 14
Chris@16 15 // Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION.
Chris@16 16 #if defined(__MINGW32__)
Chris@16 17 # include <_mingw.h>
Chris@16 18 #endif
Chris@16 19
Chris@16 20 #if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF)
Chris@16 21 # define BOOST_NO_SWPRINTF
Chris@16 22 #endif
Chris@16 23
Chris@16 24 // Default defines for BOOST_SYMBOL_EXPORT and BOOST_SYMBOL_IMPORT
Chris@16 25 // If a compiler doesn't support __declspec(dllexport)/__declspec(dllimport),
Chris@16 26 // its boost/config/compiler/ file must define BOOST_SYMBOL_EXPORT and
Chris@16 27 // BOOST_SYMBOL_IMPORT
Chris@16 28 #ifndef BOOST_SYMBOL_EXPORT
Chris@16 29 # define BOOST_HAS_DECLSPEC
Chris@16 30 # define BOOST_SYMBOL_EXPORT __declspec(dllexport)
Chris@16 31 # define BOOST_SYMBOL_IMPORT __declspec(dllimport)
Chris@16 32 #endif
Chris@16 33
Chris@16 34 #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
Chris@16 35 # define BOOST_HAS_STDINT_H
Chris@16 36 # ifndef __STDC_LIMIT_MACROS
Chris@16 37 # define __STDC_LIMIT_MACROS
Chris@16 38 # endif
Chris@16 39 # define BOOST_HAS_DIRENT_H
Chris@16 40 # define BOOST_HAS_UNISTD_H
Chris@16 41 #endif
Chris@16 42
Chris@16 43 #if defined(__MINGW32__) && (__GNUC__ >= 4)
Chris@101 44 // Mingw has these functions but there are persistent problems
Chris@101 45 // with calls to these crashing, so disable for now:
Chris@101 46 //# define BOOST_HAS_EXPM1
Chris@101 47 //# define BOOST_HAS_LOG1P
Chris@16 48 # define BOOST_HAS_GETTIMEOFDAY
Chris@16 49 #endif
Chris@16 50 //
Chris@16 51 // Win32 will normally be using native Win32 threads,
Chris@16 52 // but there is a pthread library avaliable as an option,
Chris@16 53 // we used to disable this when BOOST_DISABLE_WIN32 was
Chris@16 54 // defined but no longer - this should allow some
Chris@16 55 // files to be compiled in strict mode - while maintaining
Chris@16 56 // a consistent setting of BOOST_HAS_THREADS across
Chris@16 57 // all translation units (needed for shared_ptr etc).
Chris@16 58 //
Chris@16 59
Chris@101 60 #ifndef BOOST_HAS_PTHREADS
Chris@101 61 # define BOOST_HAS_WINTHREADS
Chris@101 62 #endif
Chris@101 63
Chris@101 64 //
Chris@101 65 // WinCE configuration:
Chris@101 66 //
Chris@101 67 #if defined(_WIN32_WCE) || defined(UNDER_CE)
Chris@16 68 # define BOOST_NO_ANSI_APIS
Chris@101 69 // Windows CE does not have a conforming signature for swprintf
Chris@101 70 # define BOOST_NO_SWPRINTF
Chris@16 71 #else
Chris@16 72 # define BOOST_HAS_GETSYSTEMTIMEASFILETIME
Chris@101 73 # define BOOST_HAS_THREADEX
Chris@101 74 # define BOOST_HAS_GETSYSTEMTIMEASFILETIME
Chris@16 75 #endif
Chris@16 76
Chris@16 77 #ifndef BOOST_DISABLE_WIN32
Chris@16 78 // WEK: Added
Chris@16 79 #define BOOST_HAS_FTIME
Chris@16 80 #define BOOST_WINDOWS 1
Chris@16 81
Chris@16 82 #endif