-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Milestone
Description
SDL_ELF_NOTE_DLOPEN
of SDL_dlopennote.h
is currently designed to be used unconditionally.
SDL/include/SDL3/SDL_dlopennote.h
Lines 102 to 109 in 45d65f6
#if !defined(SDL_PLATFORM_UNIX) || defined(SDL_PLATFORM_ANDROID) | |
/* The dlopen note functionality isn't used on this platform */ | |
#ifndef SDL_DISABLE_DLOPEN_NOTES | |
#define SDL_DISABLE_DLOPEN_NOTES | |
#endif | |
#endif /* SDL_PLATFORM_UNIX || SDL_PLATFORM_ANDROID */ | |
#if defined(__ELF__) && !defined(SDL_DISABLE_DLOPEN_NOTES) |
However, it cannot be used with an (older) toolchain not supporting variadic macros.
Compiling testdlopennote.c
of this PR fails with the error below (when using MSVC 6):
testdlopennote.c(13) : error C2059: syntax error : 'string'
Defining SDL_DISABLE_DLOPEN_NOTES
does not help since it is already defined (Windows is not a unix platform).
Metadata
Metadata
Assignees
Labels
No labels