From d4cffe78c97740dafb5a099f9ddb156c38613265 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 16 Oct 2024 22:32:02 +0300
Subject: [PATCH] minor sync with latest SDL2 and SDL3.
---
include/SDL2/SDL_stdinc.h | 3 +++
src/sdl3_include_wrapper.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/SDL2/SDL_stdinc.h b/include/SDL2/SDL_stdinc.h
index 3f01d56..9fa3488 100644
--- a/include/SDL2/SDL_stdinc.h
+++ b/include/SDL2/SDL_stdinc.h
@@ -749,6 +749,9 @@ size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t size);
size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
#endif
+/* strdup is not ANSI but POSIX, and its prototype might be hidden... */
+char *strdup(const char *str);
+
/* Starting LLVM 16, the analyser errors out if these functions do not have
their prototype defined (clang-diagnostic-implicit-function-declaration) */
#include <stdlib.h>
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 2c85fd3..fd46f14 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -1222,7 +1222,7 @@
#include <SDL3/SDL.h>
#if !SDL_VERSION_ATLEAST(3,1,3)
-#error You need to compile against SDL >= 3.0.0 headers.
+#error You need to compile against SDL >= 3.1.3 headers
#endif
#define SDL_MAIN_HANDLED 1