summaryrefslogtreecommitdiff
path: root/games/hack/config.h
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-04-01 16:01:00 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-04-01 16:01:00 +0000
commit7366db9b89af05935c6bf0ff78d21d60eb92eb28 (patch)
tree2f1ef273cc0d940adcffb790145a825f34d80d78 /games/hack/config.h
parentd45211f42554922c1afd8c51b8449246222f16b4 (diff)
Changes from NetBSD to compile games without warnings due to short being
unsigned on some archs, PowerPC, ROMP.
Diffstat (limited to 'games/hack/config.h')
-rw-r--r--games/hack/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/hack/config.h b/games/hack/config.h
index 0e2d7006fca..47decc61d2c 100644
--- a/games/hack/config.h
+++ b/games/hack/config.h
@@ -105,7 +105,11 @@
* will do when you have signed characters; otherwise use
* typedef short int schar;
*/
+#ifdef __CHAR_UNSIGNED__
+typedef short int schar;
+#else
typedef char schar;
+#endif
/*
* small unsigned integers (8 bits suffice - but 7 bits do not)