summaryrefslogtreecommitdiff
path: root/X.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:42 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:42 +0000
commit5ec315b967cb1ae519f514896f0b48fb5407f863 (patch)
treee4e72bdbe972af362cebc19b9e1b02a4767a04ee /X.h
parentf2001f5bd5316842106a98b23f09400688575fa3 (diff)
XFree86 4.3.0.1
Diffstat (limited to 'X.h')
-rw-r--r--X.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/X.h b/X.h
index a892b0a..ffeea80 100644
--- a/X.h
+++ b/X.h
@@ -53,6 +53,8 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
+/* $XFree86: xc/include/X.h,v 1.5 2001/12/14 19:53:25 dawes Exp $ */
+
#define X_PROTOCOL 11 /* current protocol version */
#define X_PROTOCOL_REVISION 0 /* current minor version */
@@ -64,23 +66,44 @@ SOFTWARE.
* client or library code.
*/
#ifndef _XSERVER64
+# ifndef _XTYPEDEF_XID
+# define _XTYPEDEF_XID
typedef unsigned long XID;
+# endif
+# ifndef _XTYPEDEF_MASK
+# define _XTYPEDEF_MASK
typedef unsigned long Mask;
-typedef unsigned long Atom;
+# endif
+# ifndef _XTYPEDEF_ATOM
+# define _XTYPEDEF_ATOM
+typedef unsigned long Atom; /* Also in Xdefs.h */
+# endif
typedef unsigned long VisualID;
typedef unsigned long Time;
#else
-#include <X11/Xmd.h>
+# include <X11/Xmd.h>
+# ifndef _XTYPEDEF_XID
+# define _XTYPEDEF_XID
typedef CARD32 XID;
+# endif
+# ifndef _XTYPEDEF_MASK
+# define _XTYPEDEF_MASK
typedef CARD32 Mask;
+# endif
+# ifndef _XTYPEDEF_ATOM
+# define _XTYPEDEF_ATOM
typedef CARD32 Atom;
+# endif
typedef CARD32 VisualID;
typedef CARD32 Time;
#endif
typedef XID Window;
typedef XID Drawable;
+#ifndef _XTYPEDEF_FONT
+# define _XTYPEDEF_FONT
typedef XID Font;
+#endif
typedef XID Pixmap;
typedef XID Cursor;
typedef XID Colormap;
@@ -93,7 +116,9 @@ typedef unsigned char KeyCode;
* RESERVED RESOURCE AND CONSTANT DEFINITIONS
*****************************************************************/
+#ifndef None
#define None 0L /* universal null resource or null atom */
+#endif
#define ParentRelative 1L /* background pixmap in CreateWindow
and ChangeWindowAttributes */