]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/boost/boost/config/platform/win32.hpp
Add subset of boost library headers needed for compilation on PowerPC
[eurobot/public.git] / src / boost / boost / config / platform / win32.hpp
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 //  Default defines for BOOST_SYMBOL_EXPORT and BOOST_SYMBOL_IMPORT
25 //  If a compiler doesn't support __declspec(dllexport)/__declspec(dllimport),
26 //  its boost/config/compiler/ file must define BOOST_SYMBOL_EXPORT and
27 //  BOOST_SYMBOL_IMPORT
28 #ifndef BOOST_SYMBOL_EXPORT
29 #  define BOOST_HAS_DECLSPEC
30 #  define BOOST_SYMBOL_EXPORT __declspec(dllexport)
31 #  define BOOST_SYMBOL_IMPORT __declspec(dllimport)
32 #endif
33
34 #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
35 #  define BOOST_HAS_STDINT_H
36 #  define __STDC_LIMIT_MACROS
37 #  define BOOST_HAS_DIRENT_H
38 #  define BOOST_HAS_UNISTD_H
39 #endif
40
41 #if defined(__MINGW32__) && (__GNUC__ >= 4)
42 #  define BOOST_HAS_EXPM1
43 #  define BOOST_HAS_LOG1P
44 #  define BOOST_HAS_GETTIMEOFDAY
45 #endif
46 //
47 // Win32 will normally be using native Win32 threads,
48 // but there is a pthread library avaliable as an option,
49 // we used to disable this when BOOST_DISABLE_WIN32 was 
50 // defined but no longer - this should allow some
51 // files to be compiled in strict mode - while maintaining
52 // a consistent setting of BOOST_HAS_THREADS across
53 // all translation units (needed for shared_ptr etc).
54 //
55
56 #ifdef _WIN32_WCE
57 #  define BOOST_NO_ANSI_APIS
58 #else
59 #  define BOOST_HAS_GETSYSTEMTIMEASFILETIME
60 #endif
61
62 #ifndef BOOST_HAS_PTHREADS
63 #  define BOOST_HAS_WINTHREADS
64 #endif
65
66 #ifndef BOOST_DISABLE_WIN32
67 // WEK: Added
68 #define BOOST_HAS_FTIME
69 #define BOOST_WINDOWS 1
70
71 #endif