Sfoglia il codice sorgente

Wait, this fix is cleaner

rdb 16 anni fa
parent
commit
b4fa8e90f9

+ 2 - 5
panda/src/x11display/x11GraphicsPipe.cxx

@@ -20,12 +20,9 @@
 #ifdef HAVE_XRANDR
 // Ugly workaround around the conflicting definition
 // of Connection that randr.h provides.
-#define _RANDR_H_
-typedef unsigned short Connection;
-typedef unsigned short Rotation;
-typedef unsigned short SizeID;
-typedef unsigned short SubpixelOrder;
+#define Connection XConnection
 #include <X11/extensions/Xrandr.h>
+#undef Connection
 #endif
 
 TypeHandle x11GraphicsPipe::_type_handle;

+ 2 - 5
panda/src/x11display/x11GraphicsWindow.cxx

@@ -39,12 +39,9 @@
 #ifdef HAVE_XRANDR
 // Ugly workaround around the conflicting definition
 // of Connection that randr.h provides.
-#define _RANDR_H_
-typedef unsigned short Connection;
-typedef unsigned short Rotation;
-typedef unsigned short SizeID;
-typedef unsigned short SubpixelOrder;
+#define Connection XConnection
 #include <X11/extensions/Xrandr.h>
+#undef Connection
 #endif
 
 #ifdef HAVE_LINUX_INPUT_H