|
@@ -1,22 +1,16 @@
|
|
|
Index: include/curses.h.in
|
|
Index: include/curses.h.in
|
|
|
---- include/curses.h.in.orig 2004-01-18 10:36:33.000000000 +0100
|
|
|
|
|
-+++ include/curses.h.in 2004-01-18 10:39:17.000000000 +0100
|
|
|
|
|
-@@ -115,6 +115,9 @@
|
|
|
|
|
- * Otherwise, let it remain a typedef to avoid conflicts with other #define's.
|
|
|
|
|
- * In either case, make a typedef for NCURSES_BOOL which can be used if needed
|
|
|
|
|
- * from either C or C++.
|
|
|
|
|
-+ *
|
|
|
|
|
-+ * We have <stdbool.h> if and only if we are a ISO C 9x compiler. A configure
|
|
|
|
|
-+ * time check is not sufficient.
|
|
|
|
|
|
|
+--- include/curses.h.in.orig 2004-02-22 09:36:58.000000000 +0100
|
|
|
|
|
++++ include/curses.h.in 2004-02-22 09:37:14.000000000 +0100
|
|
|
|
|
+@@ -61,7 +61,11 @@
|
|
|
|
|
+ * User-definable tweak to disable the include of <stdbool.h>.
|
|
|
*/
|
|
*/
|
|
|
-
|
|
|
|
|
- #undef TRUE
|
|
|
|
|
-@@ -132,7 +135,7 @@
|
|
|
|
|
-
|
|
|
|
|
- #else /* c89, c99, etc. */
|
|
|
|
|
-
|
|
|
|
|
--#if @cf_cv_header_stdbool_h@
|
|
|
|
|
|
|
+ #ifndef NCURSES_ENABLE_STDBOOL_H
|
|
|
|
|
+-#define NCURSES_ENABLE_STDBOOL_H @cf_cv_header_stdbool_h@
|
|
|
+#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L)
|
|
+#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L)
|
|
|
- #include <stdbool.h>
|
|
|
|
|
- /* use whatever the C compiler decides bool really is */
|
|
|
|
|
- #define NCURSES_BOOL bool
|
|
|
|
|
|
|
++#define NCURSES_ENABLE_STDBOOL_H 1
|
|
|
|
|
++#else
|
|
|
|
|
++#define NCURSES_ENABLE_STDBOOL_H 0
|
|
|
|
|
++#endif
|
|
|
|
|
+ #endif
|
|
|
|
|
+
|
|
|
|
|
+ /*
|