From 992f80eb519119d221876b53b206c850681788f3 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 19 Jun 2024 17:04:52 +0200 Subject: [PATCH] testnative: include SDL_build_config.h instead of SDL_internal.h --- test/testnative.c | 5 +++-- test/testnative.h | 10 ++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/test/testnative.c b/test/testnative.c index d5c54e458..1df5ebd25 100644 --- a/test/testnative.c +++ b/test/testnative.c @@ -11,15 +11,16 @@ */ /* Simple program: Create a native window and attach an SDL renderer */ -#include +#include "testnative.h" #include #include #include -#include "testnative.h" #include "testutils.h" +#include + #define WINDOW_W 640 #define WINDOW_H 480 #define NUM_SPRITES 100 diff --git a/test/testnative.h b/test/testnative.h index 7a1c934d0..40429bd10 100644 --- a/test/testnative.h +++ b/test/testnative.h @@ -13,16 +13,10 @@ /* Definitions for platform dependent windowing functions to test SDL integration with native windows */ + #include -/* Hack to avoid dynapi renaming */ -#include "../src/dynapi/SDL_dynapi.h" -#ifdef SDL_DYNAMIC_API -#undef SDL_DYNAMIC_API -#endif -#define SDL_DYNAMIC_API 0 - -#include "../src/SDL_internal.h" +#include "build_config/SDL_build_config.h" typedef struct {