From: Dave Brolley <brolley@redhat.com>
To: sid@sources.redhat.com
Subject: [patch][rfa] typedef of 'bool' in /usr/include/curses.h on Solaris
Date: Wed, 03 Jan 2007 20:31:00 -0000 [thread overview]
Message-ID: <459C1289.1030505@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
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
[-- Attachment #2: lcd.ChangeLog --]
[-- Type: text/plain, Size: 104 bytes --]
2006-12-07 Dave Brolley <brolley@redhat.com>
* lcd-char-display.cxx (_BOOL): New macro definition.
[-- Attachment #3: lcd.patch.txt --]
[-- Type: text/plain, Size: 684 bytes --]
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
next reply other threads:[~2007-01-03 20:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-03 20:31 Dave Brolley [this message]
2007-01-03 21:17 ` Frank Ch. Eigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=459C1289.1030505@redhat.com \
--to=brolley@redhat.com \
--cc=sid@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).