mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 03:48:14 +00:00
testevdev: include SDL_internal.h first, and fixup SDL_main.h
This commit is contained in:

committed by
Anonymous Maarten

parent
ffc3f71aa2
commit
a65982e15d
@@ -11,11 +11,10 @@
|
|||||||
freely.
|
freely.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <SDL3/SDL.h>
|
/* Hack #1: avoid inclusion of SDL_main.h by SDL_internal.h */
|
||||||
#include <SDL3/SDL_main.h>
|
#define SDL_main_h_
|
||||||
#include <SDL3/SDL_test.h>
|
|
||||||
|
|
||||||
/* Hack to avoid dynapi renaming */
|
/* Hack #2: avoid dynapi renaming (must be done before #include <SDL3/SDL.h>) */
|
||||||
#include "../src/dynapi/SDL_dynapi.h"
|
#include "../src/dynapi/SDL_dynapi.h"
|
||||||
#ifdef SDL_DYNAMIC_API
|
#ifdef SDL_DYNAMIC_API
|
||||||
#undef SDL_DYNAMIC_API
|
#undef SDL_DYNAMIC_API
|
||||||
@@ -26,6 +25,18 @@
|
|||||||
#include "../src/SDL_internal.h"
|
#include "../src/SDL_internal.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Hack #3: undo Hack #1 */
|
||||||
|
#ifdef SDL_main_h_
|
||||||
|
#undef SDL_main_h_
|
||||||
|
#endif
|
||||||
|
#ifdef SDL_MAIN_NOIMPL
|
||||||
|
#undef SDL_MAIN_NOIMPL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <SDL3/SDL.h>
|
||||||
|
#include <SDL3/SDL_main.h>
|
||||||
|
#include <SDL3/SDL_test.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user