From 8e84d63c6c73e046686804f16c67d02ed553531a Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 23 May 2024 13:33:28 -0400 Subject: [PATCH] sdl: Allow changing the SDL.h path --- demo/sdl_renderer/nuklear_sdl_renderer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/demo/sdl_renderer/nuklear_sdl_renderer.h b/demo/sdl_renderer/nuklear_sdl_renderer.h index 0b66ae1..63bf077 100644 --- a/demo/sdl_renderer/nuklear_sdl_renderer.h +++ b/demo/sdl_renderer/nuklear_sdl_renderer.h @@ -11,7 +11,10 @@ #ifndef NK_SDL_RENDERER_H_ #define NK_SDL_RENDERER_H_ -#include +#ifndef NK_SDL_RENDERER_SDL_H +#define NK_SDL_RENDERER_SDL_H +#endif +#include NK_SDL_RENDERER_SDL_H NK_API struct nk_context* nk_sdl_init(SDL_Window *win, SDL_Renderer *renderer); NK_API void nk_sdl_font_stash_begin(struct nk_font_atlas **atlas); NK_API void nk_sdl_font_stash_end(void);