On Mon, Nov 12, 2001, Staehli Patrik wrote: > I'm using GNU Pth library version 1.4.0 on HP UX10.20 with gcc 2.95.1. > I am unable to compile my code using Pth because the Pth library uses > FALSE in a '#if ...' expression in pth.h and FALSE is not defined in a > way that cpp can handle. > Here's the relevant portion of pth.h (configured and compiled on HPUX10.20): > > Starting at Line 367 --> > /* extension support */ > #define PTH_EXT_SFIO FALSE > > /* Sfio extension support */ > #if FALSE > #include <sfio.h> > #else > typedef void *Sfdisc_t; > #endif > <-- end of quote > > In our environment, FALSE is defined as follows: > typedef unsigned char BOOL; > #define FALSE (BOOL)0 > > This results in a parse error of the C pre-processor at the statement > '#if FALSE', which expands to '#if (BOOL)0' ... > > It would pobably be better if Pth would not rely on a sane external > definition of TRUE and FALSE, and it IMHO is definitely not a good idea > to use them in pre-processor conditional expressions. > > Thanks for taking the time to read this, and please let me know what you > think about this (or what additional info you need).
I'll change the generated value to 0/1 instead of FALSE/TRUE for Pth 1.4.1. Thanks for your feedback. > PS: sorry, habe erst jetzt gesehen, dass Du Deutsch sprichst :-) I personally speak german, yes, but you cross-posted to [EMAIL PROTECTED] and this is an English speaking only mailing list. So, thanks for writing English. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]