From 3fa108e29d0bbc7ffe6a221fd4c144ed0ccbdf7e Mon Sep 17 00:00:00 2001
From: Cameron Cawley <[EMAIL REDACTED]>
Date: Thu, 19 May 2022 16:58:11 +0100
Subject: [PATCH] Fix enabling SDL_DYNAMIC_API in OpenWatcom builds
---
src/SDL_internal.h | 3 +--
src/dynapi/SDL_dynapi.h | 2 --
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index 69da271c624..43e407f87af 100644
--- a/src/SDL_internal.h
+++ b/src/SDL_internal.h
@@ -43,10 +43,9 @@
#if SDL_DYNAMIC_API
#include "dynapi/SDL_dynapi_overrides.h"
-/* force DECLSPEC and SDLCALL off...it's all internal symbols now.
+/* force DECLSPEC off...it's all internal symbols now.
These will have actual #defines during SDL_dynapi.c only */
#define DECLSPEC
-#define SDLCALL
#endif
#include "SDL_config.h"
diff --git a/src/dynapi/SDL_dynapi.h b/src/dynapi/SDL_dynapi.h
index 1a4fe850a7e..452078b1a2a 100644
--- a/src/dynapi/SDL_dynapi.h
+++ b/src/dynapi/SDL_dynapi.h
@@ -59,8 +59,6 @@
#define SDL_DYNAMIC_API 0 /* Turn off for static analysis, so reports are more clear. */
#elif defined(__VITA__)
#define SDL_DYNAMIC_API 0 /* vitasdk doesn't support dynamic linking */
-#elif defined(__OS2__)
-#define SDL_DYNAMIC_API 0 /* see github bugs #5667 and #5669 */
#elif defined(DYNAPI_NEEDS_DLOPEN) && !defined(HAVE_DLOPEN)
#define SDL_DYNAMIC_API 0 /* we need dlopen(), but don't have it.... */
#endif