Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
(AC_HEADER_STDBOOL): Drop gcc ... but this problem with weird bool/_Bool (re)definitions still prevents compiling on some platforms, most notably older Mac OS X and Solaris. Thank you very much, Mojca On Sun, Aug 26, 2012 at 2:47 PM, Mojca Miklavec wrote: Hello, A sparc solaris user reported a _Bool

Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
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

Re: AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-28 Thread Mojca Miklavec
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

AC_HEADER_STDBOOL: checking for _Bool separately for C and C++

2012-08-26 Thread Mojca Miklavec
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