win32.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. // See http://www.boost.org for most recent version.
  9. // Win32 specific config options:
  10. #define BOOST_PLATFORM "Win32"
  11. // Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION.
  12. #if defined(__MINGW32__)
  13. # include <_mingw.h>
  14. #endif
  15. #if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF)
  16. # define BOOST_NO_SWPRINTF
  17. #endif
  18. #if !defined(__GNUC__) && !defined(BOOST_HAS_DECLSPEC)
  19. # define BOOST_HAS_DECLSPEC
  20. #endif
  21. #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0)))
  22. # define BOOST_HAS_STDINT_H
  23. # define __STDC_LIMIT_MACROS
  24. # define BOOST_HAS_DIRENT_H
  25. # define BOOST_HAS_UNISTD_H
  26. #endif
  27. //
  28. // Win32 will normally be using native Win32 threads,
  29. // but there is a pthread library avaliable as an option,
  30. // we used to disable this when BOOST_DISABLE_WIN32 was
  31. // defined but no longer - this should allow some
  32. // files to be compiled in strict mode - while maintaining
  33. // a consistent setting of BOOST_HAS_THREADS across
  34. // all translation units (needed for shared_ptr etc).
  35. //
  36. #ifdef _WIN32_WCE
  37. # define BOOST_NO_ANSI_APIS
  38. #endif
  39. #ifndef BOOST_HAS_PTHREADS
  40. # define BOOST_HAS_WINTHREADS
  41. #endif
  42. #ifndef BOOST_DISABLE_WIN32
  43. // WEK: Added
  44. #define BOOST_HAS_FTIME
  45. #define BOOST_WINDOWS 1
  46. #endif