From eafb454edf188e7dada1ddf886d1e46f0151968d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 9 Jul 2012 08:38:08 +0100 Subject: sna: Rename conflicting symbols with uxa Reported-by: Christoph Reiter Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51887 Signed-off-by: Chris Wilson --- src/sna/fb/Makefile.am | 1 + src/sna/fb/fb.h | 2 ++ src/sna/fb/fbpict.h | 2 ++ src/sna/fb/sfb.h | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 src/sna/fb/sfb.h diff --git a/src/sna/fb/Makefile.am b/src/sna/fb/Makefile.am index 16f9b285..72d9bbf5 100644 --- a/src/sna/fb/Makefile.am +++ b/src/sna/fb/Makefile.am @@ -5,6 +5,7 @@ libfb_la_LIBADD = $(PIXMAN_LIBS) libfb_la_SOURCES = \ fb.h \ + sfb.h \ fbarc.c \ fbarcbits.h \ fbbitmap.c \ diff --git a/src/sna/fb/fb.h b/src/sna/fb/fb.h index 7847951f..3339236e 100644 --- a/src/sna/fb/fb.h +++ b/src/sna/fb/fb.h @@ -43,6 +43,8 @@ #define DBG(x) #endif +#include "sfb.h" + #define WRITE(ptr, val) (*(ptr) = (val)) #define READ(ptr) (*(ptr)) diff --git a/src/sna/fb/fbpict.h b/src/sna/fb/fbpict.h index 6bcee34b..1ce09df2 100644 --- a/src/sna/fb/fbpict.h +++ b/src/sna/fb/fbpict.h @@ -24,6 +24,8 @@ #ifndef FBPICT_H #define FBPICT_H +#include "sfb.h" + extern void fbComposite(CARD8 op, PicturePtr pSrc, diff --git a/src/sna/fb/sfb.h b/src/sna/fb/sfb.h new file mode 100644 index 00000000..a4d9d171 --- /dev/null +++ b/src/sna/fb/sfb.h @@ -0,0 +1,40 @@ +/* And rename to avoid symbol clashes with UXA */ +#define fbPolyArc sfbPolyArc +#define fbBlt sfbBlt +#define fbBltOne sfbBltOne +#define fbBltPlane sfbBltPlane +#define fbCopyNtoN sfbCopyNtoN +#define fbCopy1toN sfbCopy1toN +#define fbCopyNto1 sfbCopyNto1 +#define fbCopyArea sfbCopyArea +#define fbCopyPlane sfbCopyPlane +#define fbFill sfbFill +#define fbSolidBoxClipped sfbSolidBoxClipped +#define fbPolyFillRect sfbPolyFillRect +#define fbFillSpans sfbFillSpans +#define fbPadPixmap sfbPadPixmap +#define fbValidateGC sfbValidateGC +#define fbGetSpans sfbGetSpans +#define fbPolyGlyphBlt sfbPolyGlyphBlt +#define fbImageGlyphBlt sfbImageGlyphBlt +#define fbPutImage sfbPutImage +#define fbPuXYtImage sfbPutXYImage +#define fbGetImage sfbGetImage +#define fbPolyLine sfbPolyLine +#define fbFixCoordModePrevious sfbFixCoordModePrevious +#define fbPolySegment sfbPolySegment +#define fbBitmapToRegion sfbBitmapToRegion +#define fbPolyPoint sfbPolyPoint +#define fbPushImage sfbPushImage +#define fbPushPixels sfbPushPixels +#define fbSetSpans sfbSetSpans +#define fbSegment sfbSegment +#define fbSegment1 sfbSegment1 +#define fbTransparentSpan sfbTransparentSpan +#define fbStipple sfbStipple +#define fbTile sfbTile +#define fbReplicatePixel sfbReplicatePixel + +#define fbComposite sfbComposite +#define image_from_pict simage_from_pict +#define free_pixmap_pict sfree_pixmap_pict -- cgit v1.2.3