Fix some building issues
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 16 Aug 2008 12:08:03 +0000 (09:08 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 16 Aug 2008 12:08:03 +0000 (09:08 -0300)
movie.c

diff --git a/movie.c b/movie.c
index 6c48c1a..56da26a 100644 (file)
--- a/movie.c
+++ b/movie.c
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#define _GNU_SOURCE
 #include <glib.h>
-
 #include <stdio.h>
 #include <stdlib.h>
+#include <ctype.h>
 
 #include "point.h"
 
@@ -77,8 +78,7 @@ ReadPoints (char *filename)
   Point last;
   Point rect;
   file = fopen (filename, "r");
-  points = g_array_new (FALSE, TRUE, sizeof (SDL_Rect));
-  names = g_ptr_array_new ();
+  points = g_array_new (FALSE, TRUE, sizeof (Point));
   buffer = NULL;
   len = 0;
   rect.x = rect.y = 0;