1 /* SCCS Id: @(#)macconf.h 3.4 1999/10/25 */
2 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
3 /* NetHack may be freely redistributed. See license for details. */
10 * Compiler selection is based on the following symbols:
12 * __SC__ sc, a MPW 68k compiler
13 * __MRC__ mrc, a MPW PowerPC compiler
14 * THINK_C Think C compiler
15 * __MWERKS__ Metrowerks' Codewarrior compiler
17 * We use these early in config.h to define some needed symbols,
20 # The Metrowerks compiler defines __STDC__ (which sets NHSTC) and uses
21 # WIDENED_PROTOTYPES (defined if UNWIDENED_PROTOTYPES is undefined and
26 # define MAC68K /* 68K mac (non-powerpc) */
28 #ifndef TARGET_API_MAC_CARBON
29 # define TARGET_API_MAC_CARBON 0
36 #define NO_SIGNAL /* You wouldn't believe our signals ... */
38 #define NO_TERMS /* For tty port (see wintty.h) */
40 #define TEXTCOLOR /* For Mac TTY interface */
43 /* Use these two includes instead of system.h. */
47 /* Uncomment this line if your headers don't already define off_t */
48 /*typedef long off_t;*/
49 #include <time.h> /* for time_t */
52 * Try and keep the number of files here to an ABSOLUTE minimum !
53 * include the relevant files in the relevant .c files instead !
55 #if TARGET_API_MAC_CARBON
56 /* Avoid including <CarbonCore/fp.h> -- it has a conflicting expl() */
58 # include <Carbon/Carbon.h>
60 # include <MacTypes.h>
64 * We could use the PSN under sys 7 here ...
65 * ...but it wouldn't matter...
70 #define rindex strrchr
73 extern void error(const char *,...);
75 #if !defined(O_WRONLY)
83 * Don't redefine these Unix IO functions when making LevComp or DgnComp for
84 * MPW. With MPW, we make them into MPW tools, which use unix IO. SPEC_LEV
85 * and DGN_COMP are defined when compiling for LevComp and DgnComp respectively.
87 #if !((defined(__SC__) || defined(__MRC__) || defined(__MACH__)) && (defined(SPEC_LEV) || defined(DGN_COMP)))
88 # define creat maccreat
90 # define close macclose
92 # define write macwrite
93 # define lseek macseek
95 # define unlink _unlink
99 #define YY_NEVER_INTERACTIVE 1
101 # define TEXT_TYPE 'TEXT'
102 # define LEVL_TYPE 'LEVL'
103 # define BONE_TYPE 'BONE'
104 # define SAVE_TYPE 'SAVE'
105 # define PREF_TYPE 'PREF'
106 # define DATA_TYPE 'DATA'
107 # define MAC_CREATOR 'nh31' /* Registered with DTS ! */
108 # define TEXT_CREATOR 'ttxt' /* Something the user can actually edit */
111 * Define PORT_HELP to be the name of the port-specfic help file.
112 * This file is included into the resource fork of the application.
114 #define PORT_HELP "MacHelp"
116 #define MAC_GRAPHICS_ENV
118 # endif /* ! MACCONF_H */