before including the Xinerama header, make sure Bool is defined.
The Xlib.h Bool define has to be removed before including Qt headers, so this makes sure that things work properly... svn path=/trunk/kdebase/kwin/; revision=131909
This commit is contained in:
parent
7b78ea9f05
commit
e26ab00662
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|||
|
||||
#include <X11/Xlib.h>
|
||||
#ifdef HAVE_XINERAMA
|
||||
# ifndef Bool
|
||||
// if Bool isn't defined, then the Xinerama header will have problems...
|
||||
# define Bool int
|
||||
# endif
|
||||
extern "C" {
|
||||
#include <X11/extensions/Xinerama.h>
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue