Browse Source

Compile fix for Xrandr

rdb 16 years ago
parent
commit
a7cd0077b7

+ 1 - 0
panda/src/x11display/x11GraphicsPipe.cxx

@@ -21,6 +21,7 @@
 // Ugly workaround around the conflicting definition
 // Ugly workaround around the conflicting definition
 // of Connection that randr.h provides.
 // of Connection that randr.h provides.
 #define _RANDR_H_
 #define _RANDR_H_
+typedef unsigned short Connection;
 typedef unsigned short Rotation;
 typedef unsigned short Rotation;
 typedef unsigned short SizeID;
 typedef unsigned short SizeID;
 typedef unsigned short SubpixelOrder;
 typedef unsigned short SubpixelOrder;

+ 1 - 0
panda/src/x11display/x11GraphicsWindow.cxx

@@ -40,6 +40,7 @@
 // Ugly workaround around the conflicting definition
 // Ugly workaround around the conflicting definition
 // of Connection that randr.h provides.
 // of Connection that randr.h provides.
 #define _RANDR_H_
 #define _RANDR_H_
+typedef unsigned short Connection;
 typedef unsigned short Rotation;
 typedef unsigned short Rotation;
 typedef unsigned short SizeID;
 typedef unsigned short SizeID;
 typedef unsigned short SubpixelOrder;
 typedef unsigned short SubpixelOrder;