From 03f5185eff5c63538424a40329d0b4f6c1148379 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 25 Mar 2015 11:18:54 -0400 Subject: [PATCH] Make the Dynamic API master switch more clear. --- src/dynapi/SDL_dynapi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dynapi/SDL_dynapi.h b/src/dynapi/SDL_dynapi.h index df8760019..5f4ea8d28 100644 --- a/src/dynapi/SDL_dynapi.h +++ b/src/dynapi/SDL_dynapi.h @@ -49,7 +49,10 @@ #define SDL_DYNAMIC_API 0 #elif defined(__clang_analyzer__) #define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */ -#else /* everyone else. */ +#endif + +/* everyone else. This is where we turn on the API if nothing forced it off. */ +#ifndef SDL_DYNAMIC_API #define SDL_DYNAMIC_API 1 #endif