From: Pierre Ossman Date: Fri, 13 May 2016 14:11:34 +0000 (+0200) Subject: Avoid symbol clash for Xregion functions X-Git-Tag: v1.6.90~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7afc386fb67150d212ffd995d31ee0e4016fdee;p=tigervnc.git Avoid symbol clash for Xregion functions We might be linking our Xregion and libX11 into the same binary, causing a clash between the symbols. In theory they should be compatible, but that's not guaranteed. Avoid the issue by adding a "vnc" prefix to our version. --- diff --git a/common/Xregion/Xutil.h b/common/Xregion/Xutil.h index f1d333ef..4da56a52 100644 --- a/common/Xregion/Xutil.h +++ b/common/Xregion/Xutil.h @@ -52,6 +52,22 @@ SOFTWARE. /* You must include before including this file */ #include "Xlib.h" +/****** Avoid symbol clash with "real" libX11 ******/ +#define XClipBox vncXClipBox +#define XCreateRegion vncXCreateRegion +#define XDestroyRegion vncXDestroyRegion +#define XEmptyRegion vncXEmptyRegion +#define XEqualRegion vncXEqualRegion +#define XIntersectRegion vncXIntersectRegion +#define XOffsetRegion vncXOffsetRegion +#define XPointInRegion vncXPointInRegion +#define XPolygonRegion vncXPolygonRegion +#define XRectInRegion vncXRectInRegion +#define XShrinkRegion vncXShrinkRegion +#define XSubtractRegion vncXSubtractRegion +#define XUnionRectWithRegion vncXUnionRectWithRegion +#define XUnionRegion vncXUnionRegion +#define XXorRegion vncXXorRegion /* * opaque reference to Region data type