SDLMAIN_DECLSPEC - Man Page
A macro to tag a main entry point function as exported.
Synopsis
#include <SDL3/SDL_main.h> #define SDLMAIN_DECLSPEC
Description
Most platforms don't need this, and the macro will be defined to nothing. Some, like Android, keep the entry points in a shared library and need to explicitly export the symbols.
External code rarely needs this, and if it needs something, it's almost always SDL_DECLSPEC instead.
Availability
This macro is available since SDL 3.2.0.
See Also
Info
SDL 3.4.0 Simple Directmedia Layer SDL3 FUNCTIONS