Fixed compile warnings about evaluating undefined identifiers.
Partially fixes Bugzilla #3351.
1.1 --- a/src/dynapi/SDL_dynapi.h Wed Jul 13 09:41:43 2016 -0700
1.2 +++ b/src/dynapi/SDL_dynapi.h Sun Jul 17 20:32:44 2016 +0200
1.3 @@ -43,11 +43,15 @@
1.4 #include "TargetConditionals.h"
1.5 #endif
1.6
1.7 -#if TARGET_OS_IPHONE || __native_client__ || __EMSCRIPTEN__ /* probably not useful on iOS, NACL or Emscripten. */
1.8 +#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE /* probably not useful on iOS. */
1.9 +#define SDL_DYNAMIC_API 0
1.10 +#elif defined(__native_client__) && __native_client__ /* probably not useful on NACL. */
1.11 #define SDL_DYNAMIC_API 0
1.12 -#elif SDL_BUILDING_WINRT /* probaly not useful on WinRT, given current .dll loading restrictions */
1.13 +#elif defined(__EMSCRIPTEN__) && __EMSCRIPTEN__ /* probably not useful on Emscripten. */
1.14 #define SDL_DYNAMIC_API 0
1.15 -#elif __PSP__
1.16 +#elif defined(SDL_BUILDING_WINRT) && SDL_BUILDING_WINRT /* probably not useful on WinRT, given current .dll loading restrictions */
1.17 +#define SDL_DYNAMIC_API 0
1.18 +#elif defined(__PSP__) && __PSP__
1.19 #define SDL_DYNAMIC_API 0
1.20 #elif defined(__clang_analyzer__)
1.21 #define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */