Make the Dynamic API master switch more clear.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 25 Mar 2015 11:18:54 -0400
changeset 9442 6073a89fc0eb
parent 9441 fc7522030729
child 9443 d0ffa280c3fc
Make the Dynamic API master switch more clear.
src/dynapi/SDL_dynapi.h
--- a/src/dynapi/SDL_dynapi.h	Wed Mar 25 10:59:10 2015 -0400
+++ b/src/dynapi/SDL_dynapi.h	Wed Mar 25 11:18:54 2015 -0400
@@ -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