Mercurial > sdl-ios-xcode
view src/main/dummy/SDL_dummy_main.c @ 1030:6b8f0543337c
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 18 Jan 2005 18:32:10 +0000 |
parents | 96ba4eab74fb |
children | 14717b52abc0 |
line wrap: on
line source
/* Include the SDL main definition header */ #include "SDL_main.h" #ifdef main #undef main int main(int argc, char *argv[]) { return(SDL_main(argc, argv)); } #else /* Nothing to do on this platform */; #endif