# HG changeset patch # User Philipp Wiesemann # Date 1468780364 -7200 # Node ID 623c40e8fd6564be3594fb0c2b49b87acfee56b6 # Parent 6c8f3b478b458eaf17b7cc11b8bc02e7049fe8d9 Fixed compile warnings about evaluating undefined identifiers. Partially fixes Bugzilla #3351. diff -r 6c8f3b478b45 -r 623c40e8fd65 src/dynapi/SDL_dynapi.h --- a/src/dynapi/SDL_dynapi.h Wed Jul 13 09:41:43 2016 -0700 +++ b/src/dynapi/SDL_dynapi.h Sun Jul 17 20:32:44 2016 +0200 @@ -43,11 +43,15 @@ #include "TargetConditionals.h" #endif -#if TARGET_OS_IPHONE || __native_client__ || __EMSCRIPTEN__ /* probably not useful on iOS, NACL or Emscripten. */ +#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* probably not useful on iOS. */ +#define SDL_DYNAMIC_API 0 +#elif defined(__native_client__) && __native_client__ /* probably not useful on NACL. */ #define SDL_DYNAMIC_API 0 -#elif SDL_BUILDING_WINRT /* probaly not useful on WinRT, given current .dll loading restrictions */ +#elif defined(__EMSCRIPTEN__) && __EMSCRIPTEN__ /* probably not useful on Emscripten. */ #define SDL_DYNAMIC_API 0 -#elif __PSP__ +#elif defined(SDL_BUILDING_WINRT) && SDL_BUILDING_WINRT /* probably not useful on WinRT, given current .dll loading restrictions */ +#define SDL_DYNAMIC_API 0 +#elif defined(__PSP__) && __PSP__ #define SDL_DYNAMIC_API 0 #elif defined(__clang_analyzer__) #define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */