mirror of https://github.com/mgba-emu/mgba.git
Wii: Silence warnings
This commit is contained in:
parent
320033e724
commit
2dbaf2edd6
|
@ -183,10 +183,14 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*")
|
||||||
enable_language(ASM)
|
enable_language(ASM)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PSP2)
|
if(PSP2 OR WII)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WII)
|
||||||
|
add_definitions(-U__STRICT_ANSI__)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
check_function_exists(strdup HAVE_STRDUP)
|
check_function_exists(strdup HAVE_STRDUP)
|
||||||
check_function_exists(strndup HAVE_STRNDUP)
|
check_function_exists(strndup HAVE_STRNDUP)
|
||||||
|
|
Loading…
Reference in New Issue