xref: /trunk/main/tools/inc/tools/prex.h (revision e78229df)
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 #include <X11/X.h>
43 #include <X11/Xlib.h>
44 #include <X11/Xutil.h>
45 #include <X11/StringDefs.h>
46 #include <X11/extensions/Xrender.h>
47 #include <X11/XKBlib.h>
48 
49 typedef unsigned long Pixel;
50 
51 #undef  DestroyAll
52 #define DestroyAll		XLIB_DestroyAll
53 #define XLIB_DestroyAll	0
54 #undef  String
55 #define String			XLIB_String
56 
57 #undef  KeyCode
58 #define KeyCode			XLIB_KeyCode //undef in intrinsics
59 
60 #define __Ol_OlXlibExt_h__
61 
62 #endif
63 
64