From 00ac7e921426edc7e27e4ba679edc1aba6c15250 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 9 Jun 2018 16:19:01 -0700 Subject: libstage: forward declare SDL types in stage.h Callers of libstage may be middle abstractions which don't actually have any SDL dependency, don't unnecessarily introduce one by forcing them to include SDL headers. --- src/stage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/stage.h b/src/stage.h index edb35dd..a51656d 100644 --- a/src/stage.h +++ b/src/stage.h @@ -17,7 +17,8 @@ #ifndef _STAGE_H #define _STAGE_H -#include +typedef struct SDL_Renderer SDL_Renderer; +typedef struct SDL_Texture SDL_Texture; #define STAGE_NODE_NAME_MAX 16 #define STAGE_LAYERS_MAX 10 -- cgit v1.2.3