From 62810b7ba6cc241883d041fc9cbd9c2da9e67783 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Thu, 24 Apr 2003 18:19:05 +0000 Subject: [PATCH] redeclare main() 'the SDL way', make sure SDL.h is always included. --- ChangeLog | 5 +++++ main/inferno.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd2de07b..bcce6e1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-24 Bradley Bell + + * main/inferno.c: redeclare main() 'the SDL way', make sure SDL.h + is always included. + 2003-04-24 Ingo van Lil * main/render.c: fix misspellings of NDEBUG diff --git a/main/inferno.c b/main/inferno.c index a51a0ef4..11962683 100644 --- a/main/inferno.c +++ b/main/inferno.c @@ -1,4 +1,4 @@ -/* $Id: inferno.c,v 1.60 2003-04-07 23:29:28 btb Exp $ */ +/* $Id: inferno.c,v 1.61 2003-04-24 18:19:05 btb Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -801,7 +801,7 @@ extern int Current_display_mode; //$$ there's got to be a better way than #include "ui.h" #endif -#ifdef SDL_INPUT +#ifndef __MSDOS__ #include #endif @@ -1173,7 +1173,7 @@ int Auto_exit = 0; char Auto_file[128] = ""; #endif -int main(int argc,char **argv) +int main(int argc, char *argv[]) { int i, t; ubyte title_pal[768]; -- 2.39.2