瀏覽代碼

SDL_shape_internals.h: forward-declare struct SDL_ShapeTree.

Ozkan Sezer 5 年之前
父節點
當前提交
f0c5841714
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/video/SDL_shape_internals.h

+ 3 - 1
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;