From f0c5841714c5a91f4f4a927a66154a3b4da33ece Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 25 Oct 2020 10:10:10 +0300 Subject: [PATCH] SDL_shape_internals.h: forward-declare struct SDL_ShapeTree. --- src/video/SDL_shape_internals.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/SDL_shape_internals.h b/src/video/SDL_shape_internals.h index b5663ca0f..a93dfa079 100644 --- a/src/video/SDL_shape_internals.h +++ b/src/video/SDL_shape_internals.h @@ -35,6 +35,8 @@ extern "C" { /* *INDENT-ON* */ #endif +struct SDL_ShapeTree; + typedef struct { struct SDL_ShapeTree *upleft,*upright,*downleft,*downright; } SDL_QuadTreeChildren; @@ -46,7 +48,7 @@ typedef union { typedef enum { QuadShape,TransparentShape,OpaqueShape } SDL_ShapeKind; -typedef struct { +typedef struct SDL_ShapeTree { SDL_ShapeKind kind; SDL_ShapeUnion data; } SDL_ShapeTree;