dynapi: implement SDL_DYNAPI_entry even when building SDL without dynapi support
This commit is contained in:
parent
bf64fecf19
commit
0efa196989
1 changed files with 13 additions and 0 deletions
|
@ -523,4 +523,17 @@ static void SDL_InitDynamicAPI(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* SDL_DYNAMIC_API */
|
||||||
|
|
||||||
|
#include <SDL3/SDL.h>
|
||||||
|
|
||||||
|
Sint32 SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize);
|
||||||
|
Sint32 SDL_DYNAPI_entry(Uint32 apiver, void *table, Uint32 tablesize)
|
||||||
|
{
|
||||||
|
(void)apiver;
|
||||||
|
(void)table;
|
||||||
|
(void)tablesize;
|
||||||
|
return -1; /* not compatible. */
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* SDL_DYNAMIC_API */
|
#endif /* SDL_DYNAMIC_API */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue