mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
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:
parent
7b6d2f85b0
commit
05288ca11e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user