Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Bill Kempf 2001. Chris@16: // (C) Copyright Aleksey Gurtovoy 2003. Chris@16: // (C) Copyright Rene Rivera 2005. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org for most recent version. Chris@16: Chris@16: // Win32 specific config options: Chris@16: Chris@16: #define BOOST_PLATFORM "Win32" Chris@16: Chris@16: // Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION. Chris@16: #if defined(__MINGW32__) Chris@16: # include <_mingw.h> Chris@16: #endif Chris@16: Chris@16: #if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF) Chris@16: # define BOOST_NO_SWPRINTF Chris@16: #endif Chris@16: Chris@16: // Default defines for BOOST_SYMBOL_EXPORT and BOOST_SYMBOL_IMPORT Chris@16: // If a compiler doesn't support __declspec(dllexport)/__declspec(dllimport), Chris@16: // its boost/config/compiler/ file must define BOOST_SYMBOL_EXPORT and Chris@16: // BOOST_SYMBOL_IMPORT Chris@16: #ifndef BOOST_SYMBOL_EXPORT Chris@16: # define BOOST_HAS_DECLSPEC Chris@16: # define BOOST_SYMBOL_EXPORT __declspec(dllexport) Chris@16: # define BOOST_SYMBOL_IMPORT __declspec(dllimport) Chris@16: #endif Chris@16: Chris@16: #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0))) Chris@16: # define BOOST_HAS_STDINT_H Chris@16: # ifndef __STDC_LIMIT_MACROS Chris@16: # define __STDC_LIMIT_MACROS Chris@16: # endif Chris@16: # define BOOST_HAS_DIRENT_H Chris@16: # define BOOST_HAS_UNISTD_H Chris@16: #endif Chris@16: Chris@16: #if defined(__MINGW32__) && (__GNUC__ >= 4) Chris@101: // Mingw has these functions but there are persistent problems Chris@101: // with calls to these crashing, so disable for now: Chris@101: //# define BOOST_HAS_EXPM1 Chris@101: //# define BOOST_HAS_LOG1P Chris@16: # define BOOST_HAS_GETTIMEOFDAY Chris@16: #endif Chris@16: // Chris@16: // Win32 will normally be using native Win32 threads, Chris@16: // but there is a pthread library avaliable as an option, Chris@16: // we used to disable this when BOOST_DISABLE_WIN32 was Chris@16: // defined but no longer - this should allow some Chris@16: // files to be compiled in strict mode - while maintaining Chris@16: // a consistent setting of BOOST_HAS_THREADS across Chris@16: // all translation units (needed for shared_ptr etc). Chris@16: // Chris@16: Chris@101: #ifndef BOOST_HAS_PTHREADS Chris@101: # define BOOST_HAS_WINTHREADS Chris@101: #endif Chris@101: Chris@101: // Chris@101: // WinCE configuration: Chris@101: // Chris@101: #if defined(_WIN32_WCE) || defined(UNDER_CE) Chris@16: # define BOOST_NO_ANSI_APIS Chris@101: // Windows CE does not have a conforming signature for swprintf Chris@101: # define BOOST_NO_SWPRINTF Chris@16: #else Chris@16: # define BOOST_HAS_GETSYSTEMTIMEASFILETIME Chris@101: # define BOOST_HAS_THREADEX Chris@101: # define BOOST_HAS_GETSYSTEMTIMEASFILETIME Chris@16: #endif Chris@16: Chris@16: #ifndef BOOST_DISABLE_WIN32 Chris@16: // WEK: Added Chris@16: #define BOOST_HAS_FTIME Chris@16: #define BOOST_WINDOWS 1 Chris@16: Chris@16: #endif