Dear Autoconf developers,
I would like to reparaphrase my question from last time.
Following the advice from Autoconf manual:
http://www.delorie.com/gnu/docs/autoconf/autoconf_50.html:
The following code in gnuplot breaks compilation on at least two
systems that don't conform to C99 (Sparc
On 08/28/2012 10:58 AM, Mojca Miklavec wrote:
#if HAVE_STDBOOL_H
# include stdbool.h
#else
# ifndef __cplusplus
# if ! HAVE__BOOL
typedef unsigned char _Bool;
# endif
# define bool _Bool
# define false 0
# define true 1
# endif
// not really needed except to conform with C99
On Tue, Aug 28, 2012 at 8:34 PM, Paul Eggert wrote:
On 08/28/2012 10:58 AM, Mojca Miklavec wrote:
#if HAVE_STDBOOL_H
# include stdbool.h
#else
# ifndef __cplusplus
# if ! HAVE__BOOL
typedef unsigned char _Bool;
# endif
# define bool _Bool
# define false 0
# define true 1
#
On 08/28/2012 11:47 AM, Mojca Miklavec wrote:
What exactly is the real problem here?
The real problem is that we're testing whether
stdbool.h works in C, and using that test to configure
both C and C++. We should use a C++-specific test to test
whether stdbool.h works in C++.
On Tue, Aug 28, 2012 at 9:01 PM, Paul Eggert wrote:
On 08/28/2012 11:47 AM, Mojca Miklavec wrote:
What exactly is the real problem here?
The real problem is that we're testing whether
stdbool.h works in C, and using that test to configure
both C and C++. We should use a C++-specific test to
On 08/28/2012 12:34 PM, Mojca Miklavec wrote:
A serious question: is there any C++ compiler out there which defines
_Bool by default (without including stdbool.h)
I don't know of any offhand (remember, I don't use C++...)
but it seems quite likely that there would be, no? It would
be a valid
Hello,
A sparc solaris user reported a _Bool-related problem to gnuplot tracker.
Long story short: stdbool.h is absent, _Bool is defined in C, but not
in C++. Current header file in gnuplot sources which is used both in C
and C++ goes like
# if ! HAVE__BOOL
# ifdef __cplusplus
typedef bool