From 58f534708eb29ef01b9469ea5261bd903b8d14dd Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 14 Oct 2025 20:24:53 +0200
Subject: [PATCH] dlopennote: don't define SDL_ELF_NOTE_DLOPEN when variadic
macro's are not supported
Guard with #ifdef SDL_ELF_NOTE_DLOPEN when using older toolchains
---
include/SDL3/SDL_dlopennote.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/SDL3/SDL_dlopennote.h b/include/SDL3/SDL_dlopennote.h
index db54e4ecb809e..765b2707ddad8 100644
--- a/include/SDL3/SDL_dlopennote.h
+++ b/include/SDL3/SDL_dlopennote.h
@@ -173,7 +173,7 @@
#define SDL_DLNOTE_UNIQUE_NAME SDL_DLNOTE_JOIN(s_SDL_dlopen_note_, __LINE__)
/**
- * Note that your application has dynamic shared library dependencies.
+ * Add a note that your application has dynamic shared library dependencies.
*
* You can do this by adding the following to the global scope:
*
@@ -198,6 +198,8 @@
* );
* ```
*
+ * This macro is not available for compilers that do not support variadic macro's.
+ *
* \since This macro is available since SDL 3.4.0.
*
* \sa SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED
@@ -219,7 +221,6 @@
#elif defined(_MSC_VER) && _MSC_VER < 1400
/* Variadic macros are not supported */
-#define SDL_ELF_NOTE_DLOPEN
#else