diff --git a/CMakeLists.txt b/CMakeLists.txt index 9453cb683..24513f992 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,10 +183,14 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*") enable_language(ASM) endif() -if(PSP2) +if(PSP2 OR WII) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format") endif() +if(WII) + add_definitions(-U__STRICT_ANSI__) +endif() + include(CheckFunctionExists) check_function_exists(strdup HAVE_STRDUP) check_function_exists(strndup HAVE_STRNDUP)