ncurses.patch 820 B

1234567891011121314151617181920212223242526272829
  1. --- include/curses.h.in.dist 2003-07-30 15:13:01.000000000 +0200
  2. +++ include/curses.h.in 2003-07-30 15:15:08.000000000 +0200
  3. @@ -115,6 +115,9 @@
  4. * Otherwise, let it remain a typedef to avoid conflicts with other #define's.
  5. * In either case, make a typedef for NCURSES_BOOL which can be used if needed
  6. * from either C or C++.
  7. + *
  8. + * We have <stdbool.h> if and only if we are a ISO C 9x compiler. A configure
  9. + * time check is not sufficient.
  10. */
  11. #undef TRUE
  12. @@ -127,13 +130,13 @@
  13. #if @USE_CXX_BOOL@ /* !__cplusplus, etc. */
  14. -#if @cf_cv_header_stdbool_h@
  15. +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L)
  16. #include <stdbool.h>
  17. #endif
  18. #undef bool
  19. -#if @cf_cv_header_stdbool_h@
  20. +#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L)
  21. #define bool NCURSES_BOOL
  22. #else
  23. typedef NCURSES_BOOL bool;