]> granicus.if.org Git - nethack/commitdiff
suppress DOS djgpp build warning
authornethack.allison <nethack.allison>
Tue, 8 Jul 2003 00:30:40 +0000 (00:30 +0000)
committernethack.allison <nethack.allison>
Tue, 8 Jul 2003 00:30:40 +0000 (00:30 +0000)
gcc -c -O -I../include -DDLB -DUSE_TILES -oo/cmd.o ../src/cmd.c
../src/cmd.c: In function `rhack':
../src/cmd.c:1800: warning: case value out of range
../src/cmd.c:1801: warning: case value out of range

include/pcconf.h

index 557f073a56068ea2e0b83840481db143752a29b6..1df429e8477b45049d6c6ddd6cdbd17757d8bd8f 100644 (file)
 #define _NAIVE_DOS_REGS
 #include <stdlib.h>
 #include <string.h>    /* Provides prototypes of strncmpi(), etc.     */
+# ifndef M
+#define M(c)           ((char) (0x80 | (c)))
+# endif
 #endif
 
 /*