diff options
-rw-r--r-- | rts/include/rts/PosixSource.h | 12 | ||||
-rw-r--r-- | rts/include/stg/Types.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/rts/include/rts/PosixSource.h b/rts/include/rts/PosixSource.h index 13fd7b0ff5..be6c8ecca1 100644 --- a/rts/include/rts/PosixSource.h +++ b/rts/include/rts/PosixSource.h @@ -36,3 +36,15 @@ #define _POSIX_C_SOURCE 200809L #define _XOPEN_SOURCE 700 #endif + +#if defined(mingw32_HOST_OS) +# if defined(__USE_MINGW_ANSI_STDIO) +# if __USE_MINGW_ANSI_STDIO != 1 +# warning "Mismatch between __USE_MINGW_ANSI_STDIO definitions. \ +If using PosixSource.h make sure it is the first header included." +# endif +# else +/* Inform mingw we want the ISO rather than Windows printf format specifiers. */ +# define __USE_MINGW_ANSI_STDIO 1 +#endif +#endif diff --git a/rts/include/stg/Types.h b/rts/include/stg/Types.h index 05dec27f0c..1a9b1685fa 100644 --- a/rts/include/stg/Types.h +++ b/rts/include/stg/Types.h @@ -20,18 +20,6 @@ #pragma once -#if defined(mingw32_HOST_OS) -# if defined(__USE_MINGW_ANSI_STDIO) -# if __USE_MINGW_ANSI_STDIO != 1 -# warning "Mismatch between __USE_MINGW_ANSI_STDIO definitions. \ -If using Rts.h make sure it is the first header included." -# endif -# else -/* Inform mingw we want the ISO rather than Windows printf format specifiers. */ -# define __USE_MINGW_ANSI_STDIO 1 -#endif -#endif - /* ISO C 99 says: * "C++ implementations should define these macros only when * __STDC_LIMIT_MACROS is defined before <stdint.h> is included." |