瀏覽代碼

Make the Dynamic API master switch more clear.

Ryan C. Gordon 10 年之前
父節點
當前提交
03f5185eff
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/dynapi/SDL_dynapi.h

+ 4 - 1
src/dynapi/SDL_dynapi.h

@@ -49,7 +49,10 @@
 #define SDL_DYNAMIC_API 0
 #define SDL_DYNAMIC_API 0
 #elif defined(__clang_analyzer__)
 #elif defined(__clang_analyzer__)
 #define SDL_DYNAMIC_API 0  /* Turn off for static analysis, so reports are more clear. */
 #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
 #define SDL_DYNAMIC_API 1
 #endif
 #endif