Commit 62b41f61d4e740f90abd0c82b7ce1a166342c777

Ozkan Sezer 2021-11-13T21:29:50

fix build of testmouse.c

diff --git a/test/testmouse.c b/test/testmouse.c
index 65e7a3b..facc74c 100644
--- a/test/testmouse.c
+++ b/test/testmouse.c
@@ -16,6 +16,8 @@
 #include <emscripten/emscripten.h>
 #endif
 
+#include <stdlib.h> /* exit() */
+
 #ifdef __IPHONEOS__
 #define SCREEN_WIDTH    320
 #define SCREEN_HEIGHT   480
@@ -27,10 +29,8 @@
 static SDL_Window *window;
 static SDL_Renderer *renderer;
 
-typedef struct Line Line;
-
-typedef struct Line {
-    Line *next;
+typedef struct _Line {
+    struct _Line *next;
 
     int x1, y1, x2, y2;
     Uint8 r, g, b;