Date: Sat, 15 Jan 2005 15:06:01 -0600
authorSam Lantinga <slouken@libsdl.org>
Tue, 18 Jan 2005 18:32:10 +0000
changeset 10306b8f0543337c
parent 1029 f87f87efd45a
child 1031 3cf036d8861f
Date: Sat, 15 Jan 2005 15:06:01 -0600
From: Tyler Montbriand
Subject: [SDL] minor bugfix for test/testoverlay2.c

Programs that use malloc ought to #include <stdlib.h> . On 32-bit systems you
can get away with not including it, but on 64-bit systems it will assume
malloc() returns a 32-bit integer and butcher the 64-bit pointers it returns.
test/testoverlay2.c
     1.1 --- a/test/testoverlay2.c	Mon Jan 17 19:38:28 2005 +0000
     1.2 +++ b/test/testoverlay2.c	Tue Jan 18 18:32:10 2005 +0000
     1.3 @@ -5,6 +5,10 @@
     1.4   *                                                                              *
     1.5   ********************************************************************************/
     1.6  
     1.7 +#include <stdlib.h>
     1.8 +#include <stdio.h>
     1.9 +#include <string.h>
    1.10 +
    1.11  #include "SDL.h"
    1.12  
    1.13  #define MOOSEPIC_W 64