KVIrc  4.9.2
DeveloperAPIs
KviXlib.h
Go to the documentation of this file.
1 #ifndef _KVI_XLIB_H_
2 #define _KVI_XLIB_H_
3 //=============================================================================
4 //
5 // File : KviXlib.h
6 // Creation date : Tue Aug 14 18:17:21 2001 GMT by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 
29 #ifdef COMPILE_X11_SUPPORT
30 #ifdef Bool
31 // Someone has defined Bool ?
32 #undef Bool
33 #endif
34 
35 #ifdef None
36 #undef None
37 #endif
38 
39 #include <X11/Xlib.h>
40 
41 // Too bad that X11/Xlib.h defines Bool, Error and Success... this basically
42 // SUX since we can't use them anywhere in the source!
43 // this breaks, enums in Qt, enums in KVIrc and other stuff all around...
44 // Shame on you Xlib.h author :D
45 
46 #ifdef Bool
47 // NO!
48 #undef Bool
49 #endif
50 
51 #ifdef None
52 // No
53 #undef None
54 #endif
55 
56 #ifdef KeyPress
57 #undef KeyPress
58 #endif
59 
60 #ifdef KeyRelease
61 #undef KeyRelease
62 #endif
63 
64 #ifdef FocusIn
65 #undef FocusIn
66 #endif
67 
68 #ifdef FocusOut
69 #undef FocusOut
70 #endif
71 
72 #ifdef FontChange
73 #undef FontChange
74 #endif
75 
76 #ifdef Expose
77 #undef Expose
78 #endif
79 
80 #ifdef CursorShape
81 #undef CursorShape
82 #endif
83 
84 #endif //COMPILE_X11_SUPPORT
85 
86 #endif //_KVI_XLIB_H_
This file contains compile time settings.