mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
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
This commit is contained in:
committed by
Anonymous Maarten
parent
6840bbef58
commit
58f534708e
@@ -173,7 +173,7 @@
|
|||||||
#define SDL_DLNOTE_UNIQUE_NAME SDL_DLNOTE_JOIN(s_SDL_dlopen_note_, __LINE__)
|
#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:
|
* 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.
|
* \since This macro is available since SDL 3.4.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED
|
* \sa SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED
|
||||||
@@ -219,7 +221,6 @@
|
|||||||
#elif defined(_MSC_VER) && _MSC_VER < 1400
|
#elif defined(_MSC_VER) && _MSC_VER < 1400
|
||||||
|
|
||||||
/* Variadic macros are not supported */
|
/* Variadic macros are not supported */
|
||||||
#define SDL_ELF_NOTE_DLOPEN
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user