From: Thadeu Lima de Souza Cascardo Date: Sat, 16 Aug 2008 12:08:03 +0000 (-0300) Subject: Fix some building issues X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fmovie.git;a=commitdiff_plain;h=d843195fdef17198d9d1b2af625b484904b44c6e Fix some building issues --- diff --git a/movie.c b/movie.c index 6c48c1a..56da26a 100644 --- a/movie.c +++ b/movie.c @@ -16,10 +16,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _GNU_SOURCE #include - #include #include +#include #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;