mirror of https://github.com/libsdl-org/SDL.git
Disable SDL_DYNAMIC_API during __INTELLISENSE__
Stops visual studio showing multiple definitions for all the functions
This commit is contained in:
parent
7327fd734c
commit
1c6ba2a9ab
|
|
@ -57,7 +57,7 @@
|
|||
#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. */
|
||||
#define SDL_DYNAMIC_API 0
|
||||
#elif defined(__clang_analyzer__) || defined(SDL_THREAD_SAFETY_ANALYSIS)
|
||||
#elif defined(__clang_analyzer__) || defined(__INTELLISENSE__) || defined(SDL_THREAD_SAFETY_ANALYSIS)
|
||||
#define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */
|
||||
#elif defined(SDL_PLATFORM_VITA)
|
||||
#define SDL_DYNAMIC_API 0 /* vitasdk doesn't support dynamic linking */
|
||||
|
|
|
|||
Loading…
Reference in New Issue