# HG changeset patch # User Sam Lantinga # Date 1106073130 0 # Node ID 6b8f0543337cc510ad1b5039da8dbbc33fe90d0a # Parent f87f87efd45a526c5d1a6712bdd0f3581aa6a880 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 . 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. diff -r f87f87efd45a -r 6b8f0543337c test/testoverlay2.c --- a/test/testoverlay2.c Mon Jan 17 19:38:28 2005 +0000 +++ b/test/testoverlay2.c Tue Jan 18 18:32:10 2005 +0000 @@ -5,6 +5,10 @@ * * ********************************************************************************/ +#include +#include +#include + #include "SDL.h" #define MOOSEPIC_W 64