[patch][rfa] typedef of 'bool' in /usr/include/curses.h on Solaris
Dave Brolley <[email protected]> Wed, 03 Jan 2007 15:31:05 -0500
| Newsgroups | gmane.comp.emulators.sid.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, /usr/include/curses.h on some Solaris platforms defines a typedef of 'bool', even for C++ compiles unless the macro _BOOL is defined. Is this patch OK to commit? Dave
lcd.ChangeLog
(text/plain, 104 B)
2006-12-07 Dave Brolley <[email protected]> * lcd-char-display.cxx (_BOOL): New macro definition.
lcd.patch.txt
(text/plain, 684 B)
Index: sid/component/lcd/lcd-char-display.cxx =================================================================== RCS file: /cvs/src/src/sid/component/lcd/lcd-char-display.cxx,v retrieving revision 1.7 diff -c -p -r1.7 lcd-char-display.cxx *** sid/component/lcd/lcd-char-display.cxx 1 Mar 2006 21:07:00 -0000 1.7 --- sid/component/lcd/lcd-char-display.cxx 3 Jan 2007 20:28:03 -0000 *************** *** 15,20 **** --- 15,23 ---- #include <sidwatchutil.h> #ifdef HAVE__USR_INCLUDE_CURSES_H + // The following macro definition prevents curses.h from providing a typedef + // for bool on Solaris. + #define _BOOL 1 #include "/usr/include/curses.h" #else #ifdef HAVE_CURSES_H