[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    RE: Compile Problem with enum and None
From:       "Bennett, Thomas A" <thomas.bennett () eds ! com>
Date:       2001-05-28 23:38:34
[Download RAW message or body]

Yes have done that as I have with several other defines originating in X.h
but that is allright as a temporary fix only!

-----Original Message-----
From: Chris January [mailto:chrisjanuary@bigfoot.com]
Sent: Tuesday, 29 May 2001 11:22
To: kde-devel@kde.org
Subject: Re: Compile Problem with enum and None


> There is a problem on Solaris 8 with using "None" in an enum value because
> None is defined in the X11 headers
>
> /usr/include/X11/X.h:#define None                 0L    /* universal null
> resource or null atom */
Oh dear :(
>
> Examples of this are to be found in:
>
> kdelibs/kjs/object.h line 63
>  enum Attribute { None       = 0,
>
> kdelibs/khtml/css/cssstyleselector.h  line 89
>  enum State {
>       None = 0x00,
>
> There is also a promlen with using "Unsorted" because of
> /usr/include/X11/X.h:#define Unsorted           0
> and
> qt-2.3.0/include/qdir.h line 77
>   enum SortSpec   { Name      = 0x00,
>           Time      = 0x01,
>           Size      = 0x02,
>           Unsorted      = 0x03,
maybe:
#ifdef None
#undef None
#endif
before the enum(s). (stating the obvious)


 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
unsubscribe <<
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic