From 71dc7487f9568bd7e077417737d9d082312ede69 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 30 Nov 2022 10:11:10 +0300
Subject: [PATCH] dynapi: add extern "C" {} guards, just in case.
---
src/dynapi/SDL_dynapi.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index bf87d0a..5e5af05 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -46,6 +46,10 @@
sparingly. */
#define SDL_DYNAPI_VERSION 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static void SDL_InitDynamicAPI(void);
/* BE CAREFUL CALLING ANY SDL CODE IN HERE, IT WILL BLOW UP.
@@ -318,6 +322,10 @@ SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize)
return initialize_jumptable(apiver, table, tablesize);
}
+#ifdef __cplusplus
+}
+#endif
+
/* Obviously we can't use SDL_LoadObject() to load SDL. :) */
/* Also obviously, we never close the loaded library. */