bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sun C++ bug with stdbool


From: Paul Eggert
Subject: Re: Sun C++ bug with stdbool
Date: Fri, 16 Apr 2010 16:07:49 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Eric Blake <address@hidden> writes:

> The problem we're up against is a broken C++ compiler.

Thanks, I understand now.

> what preprocessor flags to we examine in order to skip that
> particular portion of test-stdbool.c only for CC?  Or do we go full-bore
> and use #if 0, skipping test f everywhere?

How about guarding it with "#if defined __GNUC__ || !defined __cplusplus"?

Come to think of it, shouldn't the other instances "#if 0" in that file
be "#ifdef __GNUC__"?  For example, I don't see why the last "#if 0" is
needed, as it guards code that is already guarded by "#if defined
__xlc__ || defined __GNUC__".




reply via email to

[Prev in Thread] Current Thread [Next in Thread]