Browse Source

Disable SDL_DYNAMIC_API when using ReSharper

Susko3 1 month ago
parent
commit
923813b399
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/dynapi/SDL_dynapi.h

+ 1 - 1
src/dynapi/SDL_dynapi.h

@@ -57,7 +57,7 @@
 #define SDL_DYNAMIC_API 0
 #define SDL_DYNAMIC_API 0
 #elif defined(SDL_PLATFORM_RISCOS) // probably not useful on RISC OS, since dlopen() can't be used when using static linking.
 #elif defined(SDL_PLATFORM_RISCOS) // probably not useful on RISC OS, since dlopen() can't be used when using static linking.
 #define SDL_DYNAMIC_API 0
 #define SDL_DYNAMIC_API 0
-#elif defined(__clang_analyzer__) || defined(__INTELLISENSE__) || defined(SDL_THREAD_SAFETY_ANALYSIS)
+#elif defined(__clang_analyzer__) || defined(__INTELLISENSE__) || defined(SDL_THREAD_SAFETY_ANALYSIS) || defined(__RESHARPER__)
 #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.
 #elif defined(SDL_PLATFORM_VITA)
 #elif defined(SDL_PLATFORM_VITA)
 #define SDL_DYNAMIC_API 0 // vitasdk doesn't support dynamic linking
 #define SDL_DYNAMIC_API 0 // vitasdk doesn't support dynamic linking