[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Compile Problem with enum and None
From: "Chris January" <chrisjanuary () bigfoot ! com>
Date: 2001-05-28 23:22:00
[Download RAW message or body]
> 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 <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic