Source:NetHack 3.6.0/include/tosconf.h

From NetHackWiki
(Redirected from Tosconf.h)
Jump to: navigation, search

Below is the full text to tosconf.h from the source code of NetHack 3.6.0. To link to a particular line, write [[Source:NetHack 3.6.0/include/tosconf.h#line123]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1.  /* NetHack 3.6	tosconf.h	$NHDT-Date: 1432512782 2015/05/25 00:13:02 $  $NHDT-Branch: master $:$NHDT-Revision: 1.7 $ */
  2.  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3.  /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5.  #ifdef TOS
  6.  #ifndef TOSCONF_H
  7.  #define TOSCONF_H
  8.  
  9.  #define MICRO /* must be defined to allow some inclusions */
  10.  
  11.  /*
  12.     Adjust these options to suit your compiler. The default here is for
  13.     GNU C with the MiNT library.
  14.  */
  15.  
  16.  /*#define NO_SIGNAL		/* library doesn't support signals	*/
  17.  /*#define NO_FSTAT		/* library doesn't have fstat() call	*/
  18.  #define MINT /* library supports MiNT extensions to TOS */
  19.  
  20.  #ifdef __MINT__
  21.  #define MINT
  22.  #endif
  23.  
  24.  #ifdef O_BINARY
  25.  #define FCMASK O_BINARY
  26.  #else
  27.  #define FCMASK 0660
  28.  #define O_BINARY 0
  29.  #endif
  30.  
  31.  #ifdef UNIXDEBUG
  32.  #define remove(x) unlink(x)
  33.  #endif
  34.  
  35.  /* configurable options */
  36.  #define MFLOPPY   /* floppy support		*/
  37.  #define RANDOM    /* improved random numbers	*/
  38.  #define SHELL     /* allow spawning of shell	*/
  39.  #define TERMLIB   /* use termcap			*/
  40.  #define TEXTCOLOR /* allow color			*/
  41.  #define MAIL      /* enable the fake maildemon */
  42.  #ifdef MINT
  43.  #define SUSPEND /* allow suspending the game	*/
  44.  #endif
  45.  
  46.  #ifndef TERMLIB
  47.  #define ANSI_DEFAULT /* use vt52 by default		*/
  48.  #endif
  49.  
  50.  #if defined(__GNUC__) || defined(__MINT__)
  51.  /* actually, only more recent GNU C libraries have strcmpi
  52.   * on the other hand, they're free -- if yours is out of
  53.   * date, grab the most recent from atari.archive.umich.edu
  54.   */
  55.  #define STRNCMPI
  56.  #undef strcmpi
  57.  extern int FDECL(strcmpi, (const char *, const char *));
  58.  extern int FDECL(strncmpi, (const char *, const char *, size_t));
  59.  #endif
  60.  
  61.  #include <termcap.h>
  62.  #include <unistd.h>
  63.  /* instead of including system.h from pcconf.h */
  64.  #include <string.h>
  65.  #include <stdlib.h>
  66.  #include <types.h>
  67.  #define SIG_RET_TYPE __Sigfunc
  68.  #define SYSTEM_H
  69.  
  70.  #ifndef MICRO_H
  71.  #include "micro.h"
  72.  #endif
  73.  #ifndef PCCONF_H
  74.  #include "pcconf.h" /* remainder of stuff is same as the PC */
  75.  #endif
  76.  
  77.  #ifdef TEXTCOLOR
  78.  extern boolean colors_changed; /* in tos.c */
  79.  #endif
  80.  
  81.  #ifdef __GNUC__
  82.  #define GCC_BUG /* correct a gcc bug involving double for loops */
  83.  #endif
  84.  
  85.  #endif /* TOSCONF_H */
  86.  #endif /* TOS */