From a745184f25f22160de049e89718bec2d810f2a0e Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 26 Apr 2015 15:27:39 +0200 Subject: [PATCH] Fix X11 compile and interrogate issues --- panda/src/display/get_x11.h | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/panda/src/display/get_x11.h b/panda/src/display/get_x11.h index 88f3a21ff2..7ea150a963 100644 --- a/panda/src/display/get_x11.h +++ b/panda/src/display/get_x11.h @@ -17,7 +17,7 @@ #include "pandabase.h" -#ifdef HAVE_X11 +#ifdef HAVE_X11 // This header file is designed to help work around some of the // namespace spamming that X11 causes, by renaming the symbols that // X11 declares that are known to conflict with other library names @@ -30,14 +30,21 @@ #ifdef CPPPARSER // A simple hack so interrogate can get all of the necessary // typenames. -typedef int X11_Display; -typedef int X11_Window; -typedef int X11_Cursor; -typedef int XErrorEvent; -typedef int XVisualInfo; -typedef int Atom; -typedef int XIM; -typedef int XIC; +typedef struct _XDisplay X11_Display; +typedef unsigned int XID; +typedef unsigned int Atom; +typedef unsigned int Cardinal; +typedef XID Colormap; +typedef XID X11_Window; +typedef XID X11_Cursor; +typedef struct _XIM *XIM; +typedef struct _XIC *XIC; +struct XErrorEvent; +struct XVisualInfo; +#define Bool int +#define Status int +#define True 1 +#define False 0 #else #include "pre_x11_include.h" @@ -45,6 +52,7 @@ typedef int XIC; #include #include #include +#include #ifdef HAVE_XRANDR #include