From 58a844779e46a0f84fb8c6bff9a87ac52e1e61b1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 14 Jan 2004 13:30:49 +0000 Subject: [PATCH] Patches for cstdint support: cygwin and mingw now use native stdint headers. default header now compiles in -pedantic -ansi mode with gcc. [SVN r21728] --- include/boost/config/platform/cygwin.hpp | 8 ++++++++ include/boost/config/platform/win32.hpp | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/include/boost/config/platform/cygwin.hpp b/include/boost/config/platform/cygwin.hpp index 8086c62e..0fd2ebe2 100644 --- a/include/boost/config/platform/cygwin.hpp +++ b/include/boost/config/platform/cygwin.hpp @@ -32,6 +32,14 @@ # define BOOST_HAS_FTIME #endif +// +// find out if we have a stdint.h, there should be a better way to do this: +// +#include +#ifdef _STDINT_H +#define BOOST_HAS_STDINT_H +#endif + // boilerplate code: #include diff --git a/include/boost/config/platform/win32.hpp b/include/boost/config/platform/win32.hpp index 4468e3b6..a637dc37 100644 --- a/include/boost/config/platform/win32.hpp +++ b/include/boost/config/platform/win32.hpp @@ -19,6 +19,11 @@ # define BOOST_HAS_DECLSPEC #endif +#if defined(__MINGW32__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 2))) +# define BOOST_HAS_STDINT_H +# define __STDC_LIMIT_MACROS +#endif + // // Win32 will normally be using native Win32 threads, // but there is a pthread library avaliable as an option,