From kde-core-devel Fri Oct 18 19:44:41 2002 From: Ellis Whitehead Date: Fri, 18 Oct 2002 19:44:41 +0000 To: kde-core-devel Subject: Re: enable-final broken in kdelibs (redefinition of `const int XKeyPress') X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103497001521858 On Thursday 17 October 2002 23:27, Dirk Mueller wrote: > On Don, 17 Okt 2002, Ellis Whitehead wrote: > > Would it work to change 'const int XKeyPress' to 'static const int > > XKeyPress' or should it be '#define XKeyPress KeyPress' instead? > > neither will work. simply use the XKeyPress defines instead of KeyPress > like it was done all through kdecore already and it will work. That would have been a lot easier to do if it weren't the case that the only use of an XKeyPress define, which has allegedly been used throughout kdecore , was in kkeyserver_x11.cpp. Otherwise "const int XKeyPress = KeyPress" was used. Anyhow, David's FAQ hint pointed me in the right direction. Cheers, Ellis