xref: /aoo41x/main/tools/inc/tools/prex.h (revision 514f4c20)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _PREX_H
25 #define _PREX_H
26 
27 #define Window		XLIB_Window
28 #define Font		XLIB_Font
29 #define Cursor		XLIB_Cursor
30 #define String		XLIB_String
31 #define KeyCode		XLIB_KeyCode
32 #define Region		XLIB_Region
33 #define Icon		XLIB_Icon
34 #define Time		XLIB_Time
35 #define Region		XLIB_Region
36 #define Boolean		XLIB_Boolean
37 
38 #if defined __cplusplus
39 extern "C" {
40 #endif
41 
42 #if defined(LINUX) || defined(FREEBSD) || defined(MACOSX) // should really check for xfree86 or for X11R6.1 and higher
43 #define __XKeyboardExtension__ 1
44 #else
45 #define __XKeyboardExtension__ 0
46 #endif
47 
48 #include <X11/X.h>
49 #include <X11/Xlib.h>
50 #include <X11/Xutil.h>
51 #include <X11/StringDefs.h>
52 #include <X11/extensions/Xrender.h>
53 #if __XKeyboardExtension__
54 #include <X11/XKBlib.h>
55 #endif
56 typedef unsigned long Pixel;
57 
58 #undef  DestroyAll
59 #define DestroyAll		XLIB_DestroyAll
60 #define XLIB_DestroyAll	0
61 #undef  String
62 #define String			XLIB_String
63 
64 #undef  KeyCode
65 #define KeyCode			XLIB_KeyCode //undef in intrinsics
66 
67 #define __Ol_OlXlibExt_h__
68 
69 #endif
70 
71