summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorSimon Howard2008-09-05 00:33:18 +0000
committerSimon Howard2008-09-05 00:33:18 +0000
commit15f26fadf4315e0336fd0e2c68e7162c29bbffcb (patch)
tree5e50dd7fc6c82135c5e83019a26611df88d4dc8d /src/hexen
parentc7ddc423f67236a99956960cf9fe89abf077839b (diff)
downloadchocolate-doom-15f26fadf4315e0336fd0e2c68e7162c29bbffcb.tar.gz
chocolate-doom-15f26fadf4315e0336fd0e2c68e7162c29bbffcb.tar.bz2
chocolate-doom-15f26fadf4315e0336fd0e2c68e7162c29bbffcb.zip
Fix #include statements to use lower case filenames. Add automake
configuration for building heretic/hexen code. Subversion-branch: /branches/raven-branch Subversion-revision: 1198
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/m_misc.c9
-rw-r--r--src/hexen/mn_menu.c2
-rw-r--r--src/hexen/st_start.c13
-rw-r--r--src/hexen/w_wad.c16
4 files changed, 11 insertions, 29 deletions
diff --git a/src/hexen/m_misc.c b/src/hexen/m_misc.c
index ae7485ef..9903e200 100644
--- a/src/hexen/m_misc.c
+++ b/src/hexen/m_misc.c
@@ -29,11 +29,8 @@
#else
#include <sys/stat.h>
#include <sys/types.h>
-#include <direct.h>
#include <fcntl.h>
#include <stdlib.h>
-#include <io.h>
-#include <conio.h>
#endif
#include <ctype.h>
#include "h2def.h"
@@ -567,12 +564,8 @@ default_t defaults[] = {
{"usegamma", &usegamma, 0},
-#ifdef __NeXT__
#define DEFAULT_SAVEPATH "hexndata/"
-#endif
-#ifdef __WATCOMC__
-#define DEFAULT_SAVEPATH "hexndata\\"
-#endif
+
{"savedir", (int *) &SavePath, (int) DEFAULT_SAVEPATH},
{"messageson", (int *) &messageson, 1},
diff --git a/src/hexen/mn_menu.c b/src/hexen/mn_menu.c
index 8f11f8f6..36fcfacc 100644
--- a/src/hexen/mn_menu.c
+++ b/src/hexen/mn_menu.c
@@ -295,7 +295,6 @@ static Menu_t *Menus[] = {
&SaveMenu
};
-#ifdef __WATCOMC__
static char *GammaText[] = {
TXT_GAMMA_LEVEL_OFF,
TXT_GAMMA_LEVEL_1,
@@ -303,7 +302,6 @@ static char *GammaText[] = {
TXT_GAMMA_LEVEL_3,
TXT_GAMMA_LEVEL_4
};
-#endif
// CODE --------------------------------------------------------------------
diff --git a/src/hexen/st_start.c b/src/hexen/st_start.c
index 4dc642b7..54ab9006 100644
--- a/src/hexen/st_start.c
+++ b/src/hexen/st_start.c
@@ -24,18 +24,15 @@
// HEADER FILES ------------------------------------------------------------
-#ifdef __WATCOMC__
-#include <sys\stat.h>
-#include <sys\types.h>
-#include <io.h>
-#else
-#include <libc.h>
#include <ctype.h>
+#include <fcntl.h>
+#include <stdarg.h>
+
+#ifndef O_BINARY
#define O_BINARY 0
#endif
+
#include "h2def.h"
-#include <fcntl.h>
-#include <stdarg.h> // Needed for next as well as dos
#include "st_start.h"
diff --git a/src/hexen/w_wad.c b/src/hexen/w_wad.c
index 7ad7bb2f..9155d9cf 100644
--- a/src/hexen/w_wad.c
+++ b/src/hexen/w_wad.c
@@ -24,23 +24,17 @@
// HEADER FILES ------------------------------------------------------------
-#ifdef NeXT
-#include <libc.h>
-#include <ctype.h>
-#else
-#include <malloc.h>
-#include <io.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
#include <fcntl.h>
-#include <sys/stat.h>
-#endif
+
#include "h2def.h"
// MACROS ------------------------------------------------------------------
-#ifdef NeXT
-// NeXT doesn't need a binary flag in open call
+#ifndef O_BINARY
#define O_BINARY 0
-#define strcmpi strcasecmp
#endif
// TYPES -------------------------------------------------------------------