source: NonGTP/Boost/boost/config/platform/win32.hpp @ 857

Revision 857, 1.7 KB checked in by igarcia, 19 years ago (diff)
Line 
1//  (C) Copyright John Maddock 2001 - 2003.
2//  (C) Copyright Bill Kempf 2001.
3//  (C) Copyright Aleksey Gurtovoy 2003.
4//  (C) Copyright Rene Rivera 2005.
5//  Use, modification and distribution are subject to the
6//  Boost Software License, Version 1.0. (See accompanying file
7//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9//  See http://www.boost.org for most recent version.
10
11//  Win32 specific config options:
12
13#define BOOST_PLATFORM "Win32"
14
15//  Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION.
16#if defined(__MINGW32__)
17#  include <_mingw.h>
18#endif
19
20#if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF)
21#  define BOOST_NO_SWPRINTF
22#endif
23
24#if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC)
25#  define BOOST_HAS_DECLSPEC
26#endif
27
28#if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
29#  define BOOST_HAS_STDINT_H
30#  define __STDC_LIMIT_MACROS
31#  define BOOST_HAS_DIRENT_H
32#  define BOOST_HAS_UNISTD_H
33#endif
34
35//
36// Win32 will normally be using native Win32 threads,
37// but there is a pthread library avaliable as an option,
38// we used to disable this when BOOST_DISABLE_WIN32 was
39// defined but no longer - this should allow some
40// files to be compiled in strict mode - while maintaining
41// a consistent setting of BOOST_HAS_THREADS across
42// all translation units (needed for shared_ptr etc).
43//
44
45#ifdef _WIN32_WCE
46#  define BOOST_NO_ANSI_APIS
47#endif
48
49#ifndef BOOST_HAS_PTHREADS
50#  define BOOST_HAS_WINTHREADS
51#endif
52
53#ifndef BOOST_DISABLE_WIN32
54// WEK: Added
55#define BOOST_HAS_FTIME
56#define BOOST_WINDOWS 1
57
58#endif
Note: See TracBrowser for help on using the repository browser.