From e1f956a76209c9844ae2dd6cba980431a3151b3f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 19 Feb 2013 13:15:41 +0000 Subject: [PATCH] Fix for __STDC_LIMIT_MACROS already defined. Refs #7389. [SVN r82998] --- include/boost/config/platform/win32.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/config/platform/win32.hpp b/include/boost/config/platform/win32.hpp index 39220127..6ab59f4e 100644 --- a/include/boost/config/platform/win32.hpp +++ b/include/boost/config/platform/win32.hpp @@ -33,7 +33,9 @@ #if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0))) # define BOOST_HAS_STDINT_H -# define __STDC_LIMIT_MACROS +# ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS +# endif # define BOOST_HAS_DIRENT_H # define BOOST_HAS_UNISTD_H #endif