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.

#ifndef TRADSTDC_H

#define TRADSTDC_H

#if defined(DUMB) && !defined(NOVOID)

#define NOVOID

#endif

#ifdef NOVOID

#define void int

#endif

/*

* Borland C provides enough ANSI C compatibility in its Borland C++

* mode to warrant this. But it does not set __STDC__ unless it compiles

* in its ANSI keywords only mode, which prevents use of <dos.h> and

* far pointer use.

*/

#if (defined(__STDC__) || defined(__TURBOC__)) && !defined(NOTSTDC)

#define NHSTDC

#endif

#if defined(ultrix) && defined(__STDC__) && !defined(__LANGUAGE_C)

/* Ultrix seems to be in a constant state of flux. This check attempts to

* set up ansi compatibility if it wasn't set up correctly by the compiler.