Skip to content

Commit 692c71a

Browse files
committed
The dlopen note functionality is only used on UNIX platforms
1 parent ee622c5 commit 692c71a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/SDL3/SDL_dlopennote.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@
9393
#define SDL_ELF_NOTE_DLOPEN_PRIORITY_REQUIRED "required"
9494

9595

96+
#if !defined(SDL_PLATFORM_UNIX) || defined(SDL_PLATFORM_ANDROID)
97+
/* The dlopen note functionality isn't used on this platform */
98+
#ifndef SDL_DISABLE_DLOPEN_NOTES
99+
#define SDL_DISABLE_DLOPEN_NOTES
100+
#endif
101+
#endif /* SDL_PLATFORM_UNIX || SDL_PLATFORM_ANDROID */
102+
96103
#if defined(__ELF__) && !defined(SDL_DISABLE_DLOPEN_NOTES)
97104

98105
#include <SDL3/SDL_stdinc.h>

0 commit comments

Comments
 (0)