mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
CMake: Fix warnings on MinGW platform
Fixes warning: `"__USE_MINGW_ANSI_STDIO" redefined`. `__USE_MINGW_ANSI_STDIO` is required to use 64-bit numbers in printf-like functions.
This commit is contained in:
parent
578e470ffa
commit
71661c4f19
@ -174,7 +174,7 @@ if (WIN32)
|
||||
set (WIN32_TARGET_DLL 1)
|
||||
endif ()
|
||||
if (MINGW)
|
||||
set (__USE_MINGW_ANSI_STDIO 1)
|
||||
add_definitions (-D__USE_MINGW_ANSI_STDIO=1)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
|
@ -307,8 +307,5 @@
|
||||
/* Define to 1 if on MINIX. */
|
||||
#cmakedefine01 _MINIX
|
||||
|
||||
/* Set to 1 to use C99 printf/snprintf in MinGW. */
|
||||
#cmakedefine01 __USE_MINGW_ANSI_STDIO
|
||||
|
||||
/* Define as `__inline' or '__inline__' if that's what the C compiler calls it, or to nothing if it is not supported. */
|
||||
@INLINE_CODE@
|
||||
|
Loading…
Reference in New Issue
Block a user