--- include/curses.h.in.dist 2003-07-30 15:13:01.000000000 +0200 +++ include/curses.h.in 2003-07-30 15:15:08.000000000 +0200 @@ -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 if and only if we are a ISO C 9x compiler. A configure + * time check is not sufficient. */ #undef TRUE @@ -127,13 +130,13 @@ #if @USE_CXX_BOOL@ /* !__cplusplus, etc. */ -#if @cf_cv_header_stdbool_h@ +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) #include #endif #undef bool -#if @cf_cv_header_stdbool_h@ +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) #define bool NCURSES_BOOL #else typedef NCURSES_BOOL bool;