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

List:       kde-devel
Subject:    [PATCH] kdebase/kpersonalizer compile problem with --enable-final
From:       Pavel Troller <patrol () sinus ! cz>
Date:       2002-07-23 18:24:05
[Download RAW message or body]

Hi!
  There is a name clash in stylepreview.ui.h, because
  QEvent::KeyPress and QEvent::KeyRelease are damaged by replacing KeyPress and
KeyRelease by numbers 2 and 3. It comes evidently from X.h, included by Xlib.h
from ksysinfo.cpp.
  Attached is a patch to the later to #undef these constants immediately, which
doesn't make any harm and solves this problem. Could somebody commit it, please ?

                                   With regards, Pavel Troller

["diff.out" (text/plain)]

? blabol
? diff.out
Index: ksysinfo.cpp
===================================================================
RCS file: /home/kde/kdebase/kpersonalizer/ksysinfo.cpp,v
retrieving revision 1.2
diff -u -3 -p -r1.2 ksysinfo.cpp
--- ksysinfo.cpp	23 Jul 2002 16:26:06 -0000	1.2
+++ ksysinfo.cpp	23 Jul 2002 18:12:17 -0000
@@ -20,6 +20,9 @@
  */
 
 #include <X11/Xlib.h>
+// These two are making troubles later.
+#undef KeyPress
+#undef KeyRelease
 
 #include <qstring.h>
 

>> Visit http://mail.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