1 // (C) Copyright John Maddock 2001 - 2003.
\r
2 // (C) Copyright Bill Kempf 2001.
\r
3 // (C) Copyright Aleksey Gurtovoy 2003.
\r
4 // (C) Copyright Rene Rivera 2005.
\r
5 // Use, modification and distribution are subject to the
\r
6 // Boost Software License, Version 1.0. (See accompanying file
\r
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
9 // See http://www.boost.org for most recent version.
\r
11 // Win32 specific config options:
\r
13 #define BOOST_PLATFORM "Win32"
\r
15 // Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION.
\r
16 #if defined(__MINGW32__)
\r
17 # include <_mingw.h>
\r
20 #if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF)
\r
21 # define BOOST_NO_SWPRINTF
\r
24 #if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC)
\r
25 # define BOOST_HAS_DECLSPEC
\r
28 #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
\r
29 # define BOOST_HAS_STDINT_H
\r
30 # define __STDC_LIMIT_MACROS
\r
31 # define BOOST_HAS_DIRENT_H
\r
32 # define BOOST_HAS_UNISTD_H
\r
36 // Win32 will normally be using native Win32 threads,
\r
37 // but there is a pthread library avaliable as an option,
\r
38 // we used to disable this when BOOST_DISABLE_WIN32 was
\r
39 // defined but no longer - this should allow some
\r
40 // files to be compiled in strict mode - while maintaining
\r
41 // a consistent setting of BOOST_HAS_THREADS across
\r
42 // all translation units (needed for shared_ptr etc).
\r
46 # define BOOST_NO_ANSI_APIS
\r
49 #ifndef BOOST_HAS_PTHREADS
\r
50 # define BOOST_HAS_WINTHREADS
\r
53 #ifndef BOOST_DISABLE_WIN32
\r
55 #define BOOST_HAS_FTIME
\r
56 #define BOOST_WINDOWS 1
\r