tosconf.h

Go to the documentation of this file.
00001 /*      SCCS Id: @(#)tosconf.h  3.2     90/02/22        */
00002 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
00003 /* NetHack may be freely redistributed.  See license for details. */
00004 
00005 #ifdef TOS
00006 #ifndef TOSCONF_H
00007 #define TOSCONF_H
00008 
00009 #define MICRO           /* must be defined to allow some inclusions */
00010 
00011 /*
00012    Adjust these options to suit your compiler. The default here is for
00013    GNU C with the MiNT library.
00014 */
00015 
00016 /*#define NO_SIGNAL             /* library doesn't support signals      */
00017 /*#define NO_FSTAT              /* library doesn't have fstat() call    */
00018 #define MINT                    /* library supports MiNT extensions to TOS */
00019 
00020 #ifdef __MINT__
00021 #define MINT
00022 #endif
00023 
00024 #ifdef O_BINARY
00025 #define FCMASK  O_BINARY
00026 #else
00027 #define FCMASK  0660
00028 #define O_BINARY 0
00029 #endif
00030 
00031 #ifdef UNIXDEBUG
00032 #define remove(x)       unlink(x)
00033 #endif
00034 
00035 /* configurable options */
00036 #define MFLOPPY                 /* floppy support               */
00037 #define RANDOM                  /* improved random numbers      */
00038 #define SHELL                   /* allow spawning of shell      */
00039 #define TERMLIB                 /* use termcap                  */
00040 #define TEXTCOLOR               /* allow color                  */
00041 #define MAIL                    /* enable the fake maildemon */
00042 #ifdef MINT
00043 #define SUSPEND                 /* allow suspending the game    */
00044 #endif
00045 
00046 #ifndef TERMLIB
00047 #define ANSI_DEFAULT            /* use vt52 by default          */
00048 #endif
00049 
00050 #if defined(__GNUC__) || defined(__MINT__)
00051 /* actually, only more recent GNU C libraries have strcmpi
00052  * on the other hand, they're free -- if yours is out of
00053  * date, grab the most recent from atari.archive.umich.edu
00054  */
00055 #define STRNCMPI
00056 #undef strcmpi
00057 extern int FDECL(strcmpi,(const char *, const char *));
00058 extern int FDECL(strncmpi,(const char *, const char *, size_t));
00059 #endif
00060 
00061 #include <termcap.h>
00062 #include <unistd.h>
00063 /* instead of including system.h from pcconf.h */
00064 #include <string.h>
00065 #include <stdlib.h>
00066 #include <types.h>
00067 #define SIG_RET_TYPE __Sigfunc
00068 #define SYSTEM_H
00069 
00070 #ifndef MICRO_H
00071 #include "micro.h"
00072 #endif
00073 #ifndef PCCONF_H
00074 #include "pcconf.h"             /* remainder of stuff is same as the PC */
00075 #endif
00076 
00077 #ifdef TEXTCOLOR
00078 extern boolean colors_changed;  /* in tos.c */
00079 #endif
00080 
00081 #ifdef __GNUC__
00082 #define GCC_BUG         /* correct a gcc bug involving double for loops */
00083 #endif
00084 
00085 #endif /* TOSCONF_H */
00086 #endif /* TOS */