summaryrefslogtreecommitdiffstats
path: root/phantasia/phantstruct.h
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2005-02-15 12:58:21 +0000
committerjsm <jsm@NetBSD.org>2005-02-15 12:58:21 +0000
commit1b851fffc66f91fd3d393e70e0f9ee528005a5d6 (patch)
tree9037548f9273c2caede7bb7751c6b88bc34e1b50 /phantasia/phantstruct.h
parent38363f564a3551b2bbad6b3c7c4426e7faace013 (diff)
downloadbsdgames-darwin-1b851fffc66f91fd3d393e70e0f9ee528005a5d6.tar.gz
bsdgames-darwin-1b851fffc66f91fd3d393e70e0f9ee528005a5d6.tar.zst
bsdgames-darwin-1b851fffc66f91fd3d393e70e0f9ee528005a5d6.zip
Don't presume phantasia's internal bool (char) is the same as that in
curses.h: define phbool and use it where necessary to avoid declaring functions with one bool and defining them with the other. Reviewed by <hubertf>.
Diffstat (limited to 'phantasia/phantstruct.h')
-rw-r--r--phantasia/phantstruct.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/phantasia/phantstruct.h b/phantasia/phantstruct.h
index 7e023416..fef673f5 100644
--- a/phantasia/phantstruct.h
+++ b/phantasia/phantstruct.h
@@ -1,6 +1,8 @@
-/* $NetBSD: phantstruct.h,v 1.4 2004/04/07 17:46:47 ross Exp $ */
+/* $NetBSD: phantstruct.h,v 1.5 2005/02/15 12:58:21 jsm Exp $ */
#define bool char
+/* phbool is used when we need this version of bool after <curses.h>. */
+#define phbool char
/*
* phantstruct.h - structure definitions for Phantasia