include: SDL_dynapi.h depends on platform defines

This commit is contained in:
Anonymous Maarten 2023-01-08 00:40:09 +01:00 committed by Anonymous Maarten
parent d94f2a9ee5
commit f91a747549
29 changed files with 249 additions and 200 deletions

View file

@ -49,17 +49,20 @@
SDL_free(ptr); \
}
#include "build_config/SDL_build_config.h"
#include "dynapi/SDL_dynapi.h"
#if SDL_DYNAMIC_API
#include "dynapi/SDL_dynapi_overrides.h"
/* force DECLSPEC off...it's all internal symbols now.
These will have actual #defines during SDL_dynapi.c only */
#ifdef DECLSPEC
#undef DECLSPEC
#endif
#define DECLSPEC
#endif
#include "build_config/SDL_build_config.h"
#ifdef __APPLE__
#ifndef _DARWIN_C_SOURCE
#define _DARWIN_C_SOURCE 1 /* for memset_pattern4() */