]> source.dussan.org Git - tigervnc.git/commitdiff
GCFuncs and GCOps are const since 1.16.
authorTim Waugh <twaugh@redhat.com>
Thu, 4 Sep 2014 11:36:09 +0000 (12:36 +0100)
committerTim Waugh <twaugh@redhat.com>
Thu, 4 Sep 2014 11:37:12 +0000 (12:37 +0100)
unix/xserver/hw/vnc/vncHooks.cc

index 29de4c4c4850da4d08e2e2b98272ddec990cf5a1..f75a2d49e37f6a818764b7e078eb2368abf5b051 100644 (file)
@@ -89,8 +89,13 @@ typedef struct {
 } vncHooksScreenRec, *vncHooksScreenPtr;
 
 typedef struct {
+#if XORG >= 116
     const GCFuncs *wrappedFuncs;
     const GCOps *wrappedOps;
+#else
+    GCFuncs *wrappedFuncs;
+    GCOps *wrappedOps;
+#endif
 } vncHooksGCRec, *vncHooksGCPtr;
 
 #if XORG == 15
@@ -916,7 +921,11 @@ public:
   }
   GCPtr pGC;
   vncHooksGCPtr vncHooksGC;
+#if XORG >= 116
   const GCFuncs* oldFuncs;
+#else
+  GCFuncs* oldFuncs;
+#endif
   ScreenPtr pScreen;
 };