diff options
author | dholland <dholland@NetBSD.org> | 2009-08-31 08:27:16 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-08-31 08:27:16 +0000 |
commit | f317851cef910ed84d916f18ef477f31e735802d (patch) | |
tree | e275e53266046ba2d99b4ce26a427ee5a769a2ec /phantasia/setup.c | |
parent | 261019cf959bb2b883a896cb49cb696257730a87 (diff) | |
download | bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.tar.gz bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.tar.zst bsdgames-darwin-f317851cef910ed84d916f18ef477f31e735802d.zip |
Dumping all system includes anything uses in one big header file is so 1986.
XXX: Removing unused declarations (thus, unused headers can trigger
XXX: it) sometimes causes gcc to generate substantially different
XXX: code. Dunno why but it looks rather like a gcc bug.
Diffstat (limited to 'phantasia/setup.c')
-rw-r--r-- | phantasia/setup.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/phantasia/setup.c b/phantasia/setup.c index bdb9f74b..8d2cd6ed 100644 --- a/phantasia/setup.c +++ b/phantasia/setup.c @@ -1,4 +1,4 @@ -/* $NetBSD: setup.c,v 1.20 2009/05/27 17:44:38 dholland Exp $ */ +/* $NetBSD: setup.c,v 1.21 2009/08/31 08:27:16 dholland Exp $ */ /* * setup.c - set up all files for Phantasia @@ -8,10 +8,23 @@ #include <sys/cdefs.h> #endif -#include <sys/param.h> +#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -#include "include.h" +#include <setjmp.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#ifndef __dead /* Not NetBSD */ +#define __dead +#endif + +#include "phantdefs.h" +#include "phantstruct.h" +#include "phantglobs.h" +#include "pathnames.h" int main(int, char *[]); void Error(const char *, const char *) __dead; |