Revert "Drop use of __USE_MINGW_ANSI_STDIO"

This reverts commit ac0c02de3c.

This define is needed when cross compiling from Linux to Windows.
This commit is contained in:
Erik de Castro Lopo 2016-07-03 19:02:03 +10:00
parent 7b6d2f85b0
commit 05288ca11e
2 changed files with 5 additions and 0 deletions

View File

@ -174,6 +174,7 @@ case "$host_os" in
TYPEOF_SF_COUNT_T="__int64"
SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
SIZEOF_SF_COUNT_T=8
AC_DEFINE([__USE_MINGW_ANSI_STDIO],1,[Set to 1 to use C99 printf/snprintf in MinGW.])
;;
*)
SIZEOF_SF_COUNT_T=0

View File

@ -61,7 +61,11 @@ void write_mono_file (const char * filename, int format, int srate, float * outp
#ifdef __GNUC__
static inline void
exit_if_true (int test, const char *format, ...)
#if (defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO)
__attribute__ ((format (gnu_printf, 2, 3))) ;
#else
__attribute__ ((format (printf, 2, 3))) ;
#endif
#endif
static inline void