Skip to content

Commit

Permalink
Date: Sat, 15 Jan 2005 15:06:01 -0600
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Jan 18, 2005
1 parent bf49f84 commit b817936
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testoverlay2.c
Expand Up @@ -5,6 +5,10 @@
* *
********************************************************************************/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "SDL.h"

#define MOOSEPIC_W 64
Expand Down

0 comments on commit b817936

Please sign in to comment.