mirror of https://github.com/libsdl-org/SDL.git
testnative: include SDL_build_config.h instead of SDL_internal.h
This commit is contained in:
parent
e6944584a0
commit
992f80eb51
|
|
@ -11,15 +11,16 @@
|
||||||
*/
|
*/
|
||||||
/* Simple program: Create a native window and attach an SDL renderer */
|
/* Simple program: Create a native window and attach an SDL renderer */
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include "testnative.h"
|
||||||
|
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
#include <SDL3/SDL_main.h>
|
#include <SDL3/SDL_main.h>
|
||||||
#include <SDL3/SDL_test.h>
|
#include <SDL3/SDL_test.h>
|
||||||
|
|
||||||
#include "testnative.h"
|
|
||||||
#include "testutils.h"
|
#include "testutils.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define WINDOW_W 640
|
#define WINDOW_W 640
|
||||||
#define WINDOW_H 480
|
#define WINDOW_H 480
|
||||||
#define NUM_SPRITES 100
|
#define NUM_SPRITES 100
|
||||||
|
|
|
||||||
|
|
@ -13,16 +13,10 @@
|
||||||
/* Definitions for platform dependent windowing functions to test SDL
|
/* Definitions for platform dependent windowing functions to test SDL
|
||||||
integration with native windows
|
integration with native windows
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
|
|
||||||
/* Hack to avoid dynapi renaming */
|
#include "build_config/SDL_build_config.h"
|
||||||
#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"
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue