diff options
Diffstat (limited to 'gl/tests/inttypes.in.h')
-rw-r--r-- | gl/tests/inttypes.in.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gl/tests/inttypes.in.h b/gl/tests/inttypes.in.h index 13a72bee90..78846f6968 100644 --- a/gl/tests/inttypes.in.h +++ b/gl/tests/inttypes.in.h @@ -51,6 +51,10 @@ #endif /* Get CHAR_BIT. */ #include <limits.h> +/* On mingw, __USE_MINGW_ANSI_STDIO only works if <stdio.h> is also included */ +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include <stdio.h> +#endif #if !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX) # error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@gnu.org>." |