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

List:       kde-devel
Subject:    Compile Problem with enum and None
From:       Thomas Bennett <thomas.bennett () eds ! com>
Date:       2001-05-28 21:01:54
[Download RAW message or body]

Hello,

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 */

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,


Strangely I have only struck this problem in the kdelibs-20010525 snapshot.

I am using gcc 2.95.2 

Regards
Thomas Bennett
 
>> 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