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:
evpobr 2019-01-31 09:42:36 +05:00 committed by Erik de Castro Lopo
parent 578e470ffa
commit 71661c4f19
2 changed files with 1 additions and 4 deletions

View File

@ -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 ()

View File

@ -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@