SDL: Disable SDL_DYNAMIC_API during __INTELLISENSE__

From 1c6ba2a9ab149c13512eca747f16552f92416c84 Mon Sep 17 00:00:00 2001
From: Brick <[EMAIL REDACTED]>
Date: Fri, 3 May 2024 00:14:43 +0100
Subject: [PATCH] Disable SDL_DYNAMIC_API during __INTELLISENSE__

Stops visual studio showing multiple definitions for all the functions
---
 src/dynapi/SDL_dynapi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dynapi/SDL_dynapi.h b/src/dynapi/SDL_dynapi.h
index 43a642419b5b2..914c9badfbff7 100644
--- a/src/dynapi/SDL_dynapi.h
+++ b/src/dynapi/SDL_dynapi.h
@@ -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 */