Hengband  2.2.1
h-config.h
[詳解]
1 /*!
2  * @file h-config.h
3  * @brief 主に変愚/Zang時追加された基本事項のヘッダーファイル /
4  * The most basic "include" file. This file simply includes other low level header files.
5  * @date 2014/08/15
6  * @author
7  * 不明(変愚蛮怒スタッフ?)
8  * @details
9  * <pre>
10  * Choose the hardware, operating system, and compiler.
11  * Also, choose various "system level" compilation options.
12  * A lot of these definitions take effect in "h-system.h"
13  * Note that you may find it simpler to define some of these
14  * options in the "Makefile", especially any options describing
15  * what "system" is being used.
16  * no system definitions are needed for 4.3BSD, SUN OS, DG/UX
17  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke
18  *
19  * This software may be copied and distributed for educational, research,
20  * and not for profit purposes provided that this copyright and statement
21  * are included in all such copies. Other copyrights may also apply.
22 */
23 
24 #ifndef INCLUDED_H_CONFIG_H
25 #define INCLUDED_H_CONFIG_H
26 
27 /*
28  * OPTION: Compile on a Macintosh (see "A-mac-h" or "A-mac-pch")
29  * Automatic for Mac MPW compilation
30  */
31 #ifndef MACINTOSH
32 /* #define MACINTOSH */
33 #endif
34 
35 /*
36  * OPTION: Compile on Windows (automatic)
37  */
38 #ifndef WINDOWS
39 /* #define WINDOWS */
40 #endif
41 
42 /*
43  * Extract the "MAC_MPW" flag from the compiler
44  */
45 #if defined(__SC__) || defined(__MRC__)
46 # ifndef MACINTOSH
47 # define MACINTOSH
48 # endif
49 # ifndef MAC_MPW
50 # define MAC_MPW
51 # endif
52 #endif
53 
54 
55 #ifdef USE_IBM
56 
57  /* Use the new SVGA code */
58  #ifndef USE_IBM_SVGA
59  #define USE_IBM_SVGA
60  #endif
61 
62 
63 #endif
64 
65 /*
66  * OPTION: Compile on a HPUX version of UNIX
67  */
68 #ifndef HPUX
69 /* #define HPUX */
70 #endif
71 
72 /*
73  * OPTION: Compile on an SGI running IRIX
74  */
75 #ifndef SGI
76 /* #define SGI */
77 #endif
78 
79 /*
80  * OPTION: Compile on a Solaris machine
81  */
82 #ifndef SOLARIS
83 /* #define SOLARIS */
84 #endif
85 
86 /*
87  * OPTION: Compile on an ultrix/4.2BSD/Dynix/etc. version of UNIX,
88  * Do not define this if you are on any kind of SunOS.
89  */
90 #ifndef ULTRIX
91 /* #define ULTRIX */
92 #endif
93 
94 
95 /*
96  * Extract the "ULTRIX" flag from the compiler
97  */
98 #if defined(ultrix) || defined(Pyramid)
99 # ifndef ULTRIX
100 # define ULTRIX
101 # endif
102 #endif
103 
104 /*
105  * Extract the "ACORN" flag from the compiler
106  */
107 #ifdef __riscos
108 # ifndef ACORN
109 # define ACORN
110 # endif
111 #endif
112 
113 /*
114  * Extract the "SGI" flag from the compiler
115  */
116 #ifdef sgi
117 # ifndef SGI
118 # define SGI
119 # endif
120 #endif
121 
122 /*
123  * Extract the "WINDOWS" flag from the compiler
124  */
125 #if defined(_Windows) || defined(__WINDOWS__) || \
126  defined(__WIN32__) || defined(WIN32) || \
127  defined(__WINNT__) || defined(__NT__)
128 # ifndef WINDOWS
129 # define WINDOWS
130 # endif
131 #endif
132 
133 
134 
135 /*
136  * OPTION: Define "L64" if a "long" is 64-bits. See "h-types.h".
137  * The only such platform that angband is ported to is currently
138  * DEC Alpha AXP running OSF/1 (OpenVMS uses 32-bit longs).
139  */
140 #if defined(__alpha) && defined(__osf__)
141 # define L64
142 #endif
143 
144 
145 
146 /*
147  * OPTION: set "SET_UID" if the machine is a "multi-user" machine.
148  * This option is used to verify the use of "uids" and "gids" for
149  * various "Unix" calls, and of "pids" for getting a random seed,
150  * and of the "umask()" call for various reasons, and to guess if
151  * the "kill()" function is available, and for permission to use
152  * functions to extract user names and expand "tildes" in filenames.
153  * It is also used for "locking" and "unlocking" the score file.
154  * Basically, SET_UID should *only* be set for "Unix" machines,
155  * or for the "Atari" platform which is Unix-like, apparently
156  */
157 #if !defined(MACINTOSH) && !defined(WINDOWS) && \
158  !defined(ACORN) && !defined(VM)
159 # define SET_UID
160 #endif
161 
162 
163 /*
164  * OPTION: Set "USG" for "System V" versions of Unix
165  * This is used to choose a "lock()" function, and to choose
166  * which header files ("string.h" vs "strings.h") to include.
167  * It is also used to allow certain other options, such as options
168  * involving userid's, or multiple users on a single machine, etc.
169  */
170 #ifdef SET_UID
171 # if defined(SOLARIS) || \
172  defined(HPUX) || defined(SGI)
173 # ifndef USG
174 # define USG
175 # endif
176 # endif
177 #endif
178 
179 
180 /*
181  * Every system seems to use its own symbol as a path separator.
182  * Default to the standard Unix slash, but attempt to change this
183  * for various other systems. Note that any system that uses the
184  * "period" as a separator (i.e. ACORN) will have to pretend that
185  * it uses the slash, and do its own mapping of period <-> slash.
186  * Note that the VM system uses a "flat" directory, and thus uses
187  * the empty string for "PATH_SEP".
188  */
189 #undef PATH_SEP
190 #define PATH_SEP "/"
191 #ifdef MACINTOSH
192 # undef PATH_SEP
193 # define PATH_SEP ":"
194 #endif
195 #if defined(WINDOWS) || defined(WINNT)
196 # undef PATH_SEP
197 # define PATH_SEP "\\"
198 #endif
199 #if defined(OS2)
200 # undef PATH_SEP
201 # define PATH_SEP "\\"
202 #endif
203 #ifdef __GO32__
204 # undef PATH_SEP
205 # define PATH_SEP "/"
206 #endif
207 
208 
209 /*
210  * The Macintosh allows the use of a "file type" when creating a file
211  */
212 #if defined(MACINTOSH) || defined(MACH_O_CARBON)
213 # define FILE_TYPE_TEXT 'TEXT'
214 # define FILE_TYPE_DATA 'DATA'
215 # define FILE_TYPE_SAVE 'SAVE'
216 # define FILE_TYPE(X) (_ftype = (X))
217 #else
218 # define FILE_TYPE(X) ((void)0)
219 #endif
220 
221 
222 /*
223  * OPTION: Define "HAS_STRICMP" only if "stricmp()" exists.
224  * Note that "stricmp()" is not actually used by Angband.
225  */
226 /* #define HAS_STRICMP */
227 
228 /*
229  * Linux has "stricmp()" with a different name
230  */
231 #if defined(linux)
232 # define HAS_STRICMP
233 # define stricmp strcasecmp
234 #endif
235 
236 
237 /*
238  * OPTION: Define "HAVE_USLEEP" only if "usleep()" exists.
239  *
240  * Note that this is only relevant for "SET_UID" machines.
241  * Note that new "SOLARIS" and "SGI" machines have "usleep()".
242  */
243 #if defined(SET_UID) && !defined(HAVE_CONFIG_H)
244 # if !defined(HPUX) && !defined(ULTRIX) && !defined(ISC)
245 # define HAVE_USLEEP
246 # endif
247 #endif
248 
249 #ifdef USE_IBM
250 # ifndef HAVE_USLEEP
251 # define HAVE_USLEEP /* Set for gcc (djgpp-v2), TY */
252 # endif
253 #endif
254 
255 #ifdef JP
256 # if defined(EUC)
257 # define iskanji(x) (((unsigned char)(x) >= 0xa1 && (unsigned char)(x) <= 0xfe) || (unsigned char)(x) == 0x8e)
258 # define iskana(x) (0)
259 # elif defined(SJIS)
260 # define iskanji(x) ((0x81 <= (unsigned char)(x) && (unsigned char)(x) <= 0x9f) || (0xe0 <= (unsigned char)(x) && (unsigned char)(x) <= 0xfc))
261 # define iskana(x) (((unsigned char)(x) >= 0xA0) && ((unsigned char)(x) <= 0xDF))
262 # else
263 # error Oops! Please define "EUC" or "SJIS" for kanji-code of your system.
264 # endif
265 #endif
266 
267 #endif /* INCLUDED_H_CONFIG_H */
268 
269 
270 /* Allow debug commands */
271 #define USE_DEBUG
272 
273 /* Allow various special stuff (sound, graphics, etc.) */
274 #define USE_SPECIAL
275 
276 #ifndef HAVE_CONFIG_H
277 
278 /*
279  * USE_FONTSET and/or USE_XIM can be commented out
280  * when you don't want to use it.
281  */
282 #define USE_FONTSET
283 
284 #ifdef JP
285 #define USE_XIM
286 #endif
287 
288 #if defined(USE_FONTSET) || defined(USE_XIM)
289 #define USE_LOCALE
290 #endif
291 
292 #if defined(JP) && !defined(USE_FONTSET)
293 #define USE_JP_FONTSTRUCT
294 #endif
295 
296 #endif /* HAVE_CONFIG_H */
297 
298 
299 /*
300  * Look through the following lines, and where a comment includes the
301  * tag "OPTION:", examine the associated "#define" statements, and decide
302  * whether you wish to keep, comment, or uncomment them. You should not
303  * have to modify any lines not indicated by "OPTION".
304  *
305  * Note: Also examine the "system" configuration file "h-config.h"
306  * and the variable initialization file "variable.c". If you change
307  * anything in "variable.c", you only need to recompile that file.
308  *
309  * And finally, remember that the "Makefile" will specify some rather
310  * important compile time options, like what visual module to use.
311  */
312 
313 
314 /*
315  * OPTION: See the Makefile(s), where several options may be declared.
316  *
317  * Some popular options include "USE_GCU" (allow use with Unix "curses"),
318  * "USE_X11" (allow basic use with Unix X11), "USE_XAW" (allow use with
319  * Unix X11 plus the Athena Widget set), and "USE_CAP" (allow use with
320  * the "termcap" library, or with hard-coded vt100 terminals).
321  *
322  * The old "USE_NCU" option has been replaced with "USE_GCU".
323  *
324  * Several other such options are available for non-unix machines,
325  * such as "MACINTOSH", "WINDOWS", "USE_IBM".
326  *
327  * You may also need to specify the "system", using defines such as
328  * "SOLARIS" (for Solaris), etc, see "h-config.h" for more info.
329  */
330 
331 
332 /*
333  * OPTION: define "SPECIAL_BSD" for using certain versions of UNIX
334  * that use the 4.4BSD Lite version of Curses in "main-gcu.c"
335  */
336 /* #define SPECIAL_BSD */
337 
338 
339 /*
340  * OPTION: Use the POSIX "termios" methods in "main-gcu.c"
341  */
342 /* #define USE_TPOSIX */
343 
344 /*
345  * OPTION: Use the "termio" methods in "main-gcu.c"
346  */
347 /* #define USE_TERMIO */
348 
349 /*
350  * OPTION: Use the icky BSD "tchars" methods in "main-gcu.c"
351  */
352 /* #define USE_TCHARS */
353 
354 /*
355  * OPTION: Include "ncurses.h" instead of "curses.h" in "main-gcu.c"
356  */
357 /* #define USE_NCURSES */
358 
359 
360 /*
361  * OPTION: for multi-user machines running the game setuid to some other
362  * user (like 'games') this SAFE_SETUID option allows the program to drop
363  * its privileges when saving files that allow for user specified pathnames.
364  * This lets the game be installed system wide without major security
365  * concerns. There should not be any side effects on any machines.
366  *
367  * This will handle "gids" correctly once the permissions are set right.
368  */
369 #define SAFE_SETUID
370 
371 
372 /*
373  * This flag enables the "POSIX" methods for "SAFE_SETUID".
374  */
375 #ifdef _POSIX_SAVED_IDS
376 # define SAFE_SETUID_POSIX
377 #endif
378 
379 
380 /*
381  * Prevent problems on (non-Solaris) Suns using "SAFE_SETUID".
382  * The SAFE_SETUID code is weird, use it at your own risk...
383  */
384 #if !defined(SOLARIS)
385 # undef SAFE_SETUID_POSIX
386 #endif
387 
388 
389 
390 
391 /*
392  * OPTION: for the AFS distributed file system, define this to ensure that
393  * the program is secure with respect to the setuid code. This option has
394  * not been tested (to the best of my knowledge). This option may require
395  * some weird tricks with "p_ptr->player_uid" and such involving "defines".
396  * Note that this option used the AFS library routines Authenticate(),
397  * bePlayer(), beGames() to enforce the proper priviledges.
398  * You may need to turn "SAFE_SETUID" off to use this option.
399  */
400 /* #define SECURE */
401 
402 
403 
404 
405 /*
406  * OPTION: Verify savefile Checksums (Angband 2.7.0 and up)
407  * This option can help prevent "corruption" of savefiles, and also
408  * stop intentional modification by amateur users.
409  */
410 #define VERIFY_CHECKSUMS
411 
412 
413 /*
414  * OPTION: Forbid the use of "fiddled" savefiles. As far as I can tell,
415  * a fiddled savefile is one with an internal timestamp different from
416  * the actual timestamp. Thus, turning this option on forbids one from
417  * copying a savefile to a different name. Combined with disabling the
418  * ability to save the game without quitting, and with some method of
419  * stopping the user from killing the process at the tombstone screen,
420  * this should prevent the use of backup savefiles. It may also stop
421  * the use of savefiles from other platforms, so be careful.
422  */
423 /* #define VERIFY_TIMESTAMP */
424 
425 
426 /*
427  * OPTION: Forbid the "savefile over-write" cheat, in which you simply
428  * run another copy of the game, loading a previously saved savefile,
429  * and let that copy over-write the "dead" savefile later. This option
430  * either locks the savefile, or creates a fake "xxx.lok" file to prevent
431  * the use of the savefile until the file is deleted. Not ready yet.
432  */
433 /* #define VERIFY_SAVEFILE */
434 
435 
436 
437 /*
438  * OPTION: Hack -- Compile in support for "Cyborg" mode
439  */
440 /*#define ALLOW_BORG*/
441 
442 #ifdef USE_DEBUG
443 
444 /*!
445  * @brief ウィザードモードへの移行を許可する / OPTION: Hack -- Compile in support for "Wizard Commands"
446  */
447 #define ALLOW_WIZARD
448 
449 /*!
450  * @brief スポイラー出力を許可する / OPTION: Hack -- Compile in support for "Spoiler Generation"
451  */
452 #define ALLOW_SPOILERS
453 
454 #endif /* USE_DEBUG */
455 
456 /*!
457  * @brief キャラクターの色変更機能を付加する / OPTION: Allow "do_cmd_colors" at run-time
458  */
459 #define ALLOW_COLORS
460 
461 /*!
462  * @brief キャラクターのシンボル変更機能を付加する / OPTION: Allow "do_cmd_visuals" at run-time
463  */
464 #define ALLOW_VISUALS
465 
466 /*!
467  * @brief マクロ機能を付加する / OPTION: Allow "do_cmd_macros" at run-time
468  */
469 #define ALLOW_MACROS
470 
471 /*!
472  * @brief オートローラー機能を付加する / OPTION: Allow characteres to be "auto-rolled"
473  */
474 #define ALLOW_AUTOROLLER
475 
476 /*!
477  * @brief 一定以上のダメージを受けたモンスターが恐怖して逃走する / OPTION: Allow monsters to "flee" when hit hard
478  */
479 #define ALLOW_FEAR
480 
481 /*!
482  * @brief 一定以上のレベルを持ったプレイヤーが相手ならば、弱いモンスターは逃げ出す/ OPTION: Allow monsters to "flee" from strong players
483  */
484 #define ALLOW_TERROR
485 
486 
487 /*
488  * OPTION: Allow parsing of the ascii template files in "init.c".
489  * This must be defined if you do not have valid binary image files.
490  * It should be usually be defined anyway to allow easy "updating".
491  */
492 #define ALLOW_TEMPLATES
493 
494 /*
495  * OPTION: Allow loading of pre-2.7.0 savefiles. Note that it takes
496  * about 15K of code in "save-old.c" to parse the old savefile format.
497  * Angband 2.8.0 will ignore a lot of info from pre-2.7.0 savefiles.
498  */
499 #define ALLOW_OLD_SAVEFILES
500 
501 
502 /*
503  * OPTION: Handle signals
504  */
505 #define HANDLE_SIGNALS
506 
507 
508 /*
509  * Allow "Wizards" to yield "high scores"
510  */
511 /* #define SCORE_WIZARDS */
512 
513 /*
514  * Allow "Borgs" to yield "high scores"
515  */
516 /*#define SCORE_BORGS*/
517 
518 /*
519  * Allow "Cheaters" to yield "high scores"
520  */
521 /* #define SCORE_CHEATERS */
522 
523 
524 #ifdef USE_SPECIAL
525 
526 /*
527  * OPTION: Allow the use of "sound" in various places.
528  */
529 #define USE_SOUND
530 
531 /*
532  * OPTION: Allow the use of "graphics" in various places
533  */
534 #define USE_GRAPHICS
535 
536 /*
537  * OPTION: Allow the use of "music" in various places
538  */
539 #define USE_MUSIC
540 
541 #endif /* USE_SPECIAL */
542 
543 
544 /*
545  * OPTION: Set the "default" path to the angband "lib" directory.
546  *
547  * See "main.c" for usage, and note that this value is only used on
548  * certain machines, primarily Unix machines. If this value is used,
549  * it will be over-ridden by the "ANGBAND_PATH" environment variable,
550  * if that variable is defined and accessable. The final slash is
551  * optional, but it may eventually be required.
552  *
553  * Using the value "./lib/" below tells Angband that, by default,
554  * the user will run "angband" from the same directory that contains
555  * the "lib" directory. This is a reasonable (but imperfect) default.
556  *
557  * If at all possible, you should change this value to refer to the
558  * actual location of the "lib" folder, for example, "/tmp/angband/lib/"
559  * or "/usr/games/lib/angband/", or "/pkg/angband/lib".
560  */
561 #ifndef DEFAULT_PATH
562 # define DEFAULT_PATH "./lib/"
563 #endif
564 
565 
566 /*
567  * OPTION: Create and use a hidden directory in the users home directory
568  * for storing pref-files and character-dumps.
569  */
570 #ifdef SET_UID
571 #define PRIVATE_USER_PATH "~/.angband"
572 #endif /* SET_UID */
573 
574 
575 /*
576  * On multiuser systems, add the "uid" to savefile names
577  */
578 #ifdef SET_UID
579 # define SAVEFILE_USE_UID
580 #endif
581 
582 
583 /*
584  * OPTION: Check the "time" against "lib/file/hours.txt"
585  */
586 /* #define CHECK_TIME */
587 
588 /*
589  * OPTION: Check the "load" against "lib/file/load.txt"
590  * This may require the 'rpcsvs' library
591  */
592 /* #define CHECK_LOAD */
593 
594 
595 /*
596  * OPTION: For some brain-dead computers with no command line interface,
597  * namely Macintosh, there has to be some way of "naming" your savefiles.
598  * The current "Macintosh" hack is to make it so whenever the character
599  * name changes, the savefile is renamed accordingly. But on normal
600  * machines, once you manage to "load" a savefile, it stays that way.
601  * Macintosh is particularly weird because you can load savefiles that
602  * are not contained in the "lib:save:" folder, and if you change the
603  * player's name, it will then save the savefile elsewhere. Note that
604  * this also gives a method of "bypassing" the "VERIFY_TIMESTAMP" code.
605  */
606 /*
607 #if defined(MACINTOSH) || defined(WINDOWS)
608 # define SAVEFILE_MUTABLE
609 #endif
610 */
611 
612 /*
613  * OPTION: Capitalize the "user_name" (for "default" player name)
614  * This option is only relevant on SET_UID machines.
615  */
616 #define CAPITALIZE_USER_NAME
617 
618 
619 
620 /*
621  * OPTION: Person to bother if something goes wrong.
622  */
623 /* #define MAINTAINER "rr9@angband.org" */
624 #define MAINTAINER "echizen@users.sourceforge.jp"
625 
626 
627 #ifdef JP
628 #ifndef USE_FONTSET
629 /*
630  * OPTION: Default font (when using X11).
631  */
632 #define DEFAULT_X11_FONT "a24"
633 #define DEFAULT_X11_KFONT "kanji24"
634 #define DEFAULT_X11_FONT_SUB "a16"
635 #define DEFAULT_X11_KFONT_SUB "kanji16"
636 
637 
638 /*
639  * OPTION: Default fonts (when using X11)
640  */
641 #define DEFAULT_X11_FONT_0 DEFAULT_X11_FONT
642 #define DEFAULT_X11_KFONT_0 DEFAULT_X11_KFONT
643 #define DEFAULT_X11_FONT_1 DEFAULT_X11_FONT_SUB
644 #define DEFAULT_X11_KFONT_1 DEFAULT_X11_KFONT_SUB
645 #define DEFAULT_X11_FONT_2 DEFAULT_X11_FONT_SUB
646 #define DEFAULT_X11_KFONT_2 DEFAULT_X11_KFONT_SUB
647 #define DEFAULT_X11_FONT_3 DEFAULT_X11_FONT_SUB
648 #define DEFAULT_X11_KFONT_3 DEFAULT_X11_KFONT_SUB
649 #define DEFAULT_X11_FONT_4 DEFAULT_X11_FONT_SUB
650 #define DEFAULT_X11_KFONT_4 DEFAULT_X11_KFONT_SUB
651 #define DEFAULT_X11_FONT_5 DEFAULT_X11_FONT_SUB
652 #define DEFAULT_X11_KFONT_5 DEFAULT_X11_KFONT_SUB
653 #define DEFAULT_X11_FONT_6 DEFAULT_X11_FONT_SUB
654 #define DEFAULT_X11_KFONT_6 DEFAULT_X11_KFONT_SUB
655 #define DEFAULT_X11_FONT_7 DEFAULT_X11_FONT_SUB
656 #define DEFAULT_X11_KFONT_7 DEFAULT_X11_KFONT_SUB
657 
658 #else
659 /*
660  * OPTION: Default font (when using X11).
661  */
662 #define DEFAULT_X11_FONT \
663  "-*-*-medium-r-normal--24-*-*-*-*-*-iso8859-1" \
664  ",-*-*-medium-r-normal--24-*-*-*-*-*-jisx0208.1983-0"
665 /* "12x24" \
666  ",kanji24"*/
667 #define DEFAULT_X11_FONT_SUB \
668  "-*-*-medium-r-normal--16-*-*-*-*-*-iso8859-1" \
669  ",-*-*-medium-r-normal--16-*-*-*-*-*-jisx0208.1983-0"
670 /* "8x16" \
671  ",kanji16"*/
672 
673 /*
674  * OPTION: Default fonts (when using X11)
675  */
676 #define DEFAULT_X11_FONT_0 DEFAULT_X11_FONT
677 #define DEFAULT_X11_FONT_1 DEFAULT_X11_FONT_SUB
678 #define DEFAULT_X11_FONT_2 DEFAULT_X11_FONT_SUB
679 #define DEFAULT_X11_FONT_3 DEFAULT_X11_FONT_SUB
680 #define DEFAULT_X11_FONT_4 DEFAULT_X11_FONT_SUB
681 #define DEFAULT_X11_FONT_5 DEFAULT_X11_FONT_SUB
682 #define DEFAULT_X11_FONT_6 DEFAULT_X11_FONT_SUB
683 #define DEFAULT_X11_FONT_7 DEFAULT_X11_FONT_SUB
684 #endif
685 
686 #else
687 /*
688  * OPTION: Default font (when using X11).
689  */
690 #define DEFAULT_X11_FONT "9x15"
691 
692 /*
693  * OPTION: Default fonts (when using X11)
694  */
695 #define DEFAULT_X11_FONT_0 "10x20"
696 #define DEFAULT_X11_FONT_1 "9x15"
697 #define DEFAULT_X11_FONT_2 "9x15"
698 #define DEFAULT_X11_FONT_3 "5x8"
699 #define DEFAULT_X11_FONT_4 "5x8"
700 #define DEFAULT_X11_FONT_5 "5x8"
701 #define DEFAULT_X11_FONT_6 "5x8"
702 #define DEFAULT_X11_FONT_7 "5x8"
703 #endif
704 
705 
706 /*
707  * OPTION: Gamma correct X11 colours.
708  */
709 
710 #define SUPPORT_GAMMA
711 
712 /*
713  * Hack -- Mach-O (native binary format of OS X) is basically a Un*x
714  * but has Mac OS/Windows-like user interface
715  */
716 #ifdef MACH_O_CARBON
717 # ifdef PRIVATE_USER_PATH
718 # undef PRIVATE_USER_PATH
719 # endif
720 # ifdef SAVEFILE_USE_UID
721 # undef SAVEFILE_USE_UID
722 # endif
723 #endif
724 
725 /*
726  * OPTION: Attempt to prevent all "cheating"
727  */
728 /* #define VERIFY_HONOR */
729 
730 
731 /*
732  * React to the "VERIFY_HONOR" flag
733  */
734 #ifdef VERIFY_HONOR
735 # define VERIFY_SAVEFILE
736 # define VERIFY_CHECKSUMS
737 # define VERIFY_TIMESTAMPS
738 #endif
739 
740 /*
741  * Check the modification time of *_info.raw files
742  * (by Keldon Jones)
743  */
744 #ifndef MAC_MPW
745 #define CHECK_MODIFICATION_TIME
746 #endif
747 
748 /*
749  * Use the new sorting routines for creation
750  * of the monster allocation table
751  */
752 #define SORT_R_INFO
753 
754 
755 #ifndef HAVE_CONFIG_H
756 #define WORLD_SCORE
757 #endif /* HAVE_CONFIG_H */