[xorg-commit-diffs] xc/lib/font/util Imakefile, 1.1.4.1.6.1, 1.1.4.1.6.1.6.1 utilbitmap.c, 1.1.4.1.6.1, 1.1.4.1.6.1.6.1

Roland Mainz xorg-commit at pdx.freedesktop.org
Tue Apr 20 12:49:53 EST 2004


Committed by: gisburn

Update of /cvs/xorg/xc/lib/font/util
In directory pdx:/tmp/cvs-serv24694/xc/lib/font/util

Modified Files:
      Tag: XPRINT
	Imakefile utilbitmap.c 
Log Message:
Fix for http://xprint.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=513 - Building with static FreeType library and static libXfont results in duplicate symbols

Index: Imakefile
===================================================================
RCS file: /cvs/xorg/xc/lib/font/util/Imakefile,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.6.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.6.1
--- a/Imakefile	4 Mar 2004 17:47:13 -0000	1.1.4.1.6.1
+++ b/Imakefile	20 Apr 2004 02:49:50 -0000	1.1.4.1.6.1.6.1
@@ -19,7 +19,16 @@
        it doesn't break anything. */
      SYS_DEFINES = -D__XPG4_CHAR_CLASS__
 #endif
-         DEFINES = StrcasecmpDefines $(SYS_DEFINES)
+/* See xc/lib/font/FreeType/Imakefile - if we build the internal version of
+ * FreeType we should not implement functions already defined by it
+ * (see http://pdx.freedesktop.org/cgi-bin/bugzilla/show_bug.cgi?id=513)
+ */
+#if !HasFreetype2
+INTERNALDEFINES = -DUSE_INTERNAL_FREETYPE
+#endif
+
+
+         DEFINES = StrcasecmpDefines $(SYS_DEFINES) $(INTERNALDEFINES)
 
             SRCS = utilbitmap.c fontnames.c fontutil.c fontxlfd.c format.c \
 		   fontaccel.c atom.c miscutil.c private.c patcache.c

Index: utilbitmap.c
===================================================================
RCS file: /cvs/xorg/xc/lib/font/util/utilbitmap.c,v
retrieving revision 1.1.4.1.6.1
retrieving revision 1.1.4.1.6.1.6.1
diff -u -d -r1.1.4.1.6.1 -r1.1.4.1.6.1.6.1
--- a/utilbitmap.c	4 Mar 2004 17:47:13 -0000	1.1.4.1.6.1
+++ b/utilbitmap.c	20 Apr 2004 02:49:50 -0000	1.1.4.1.6.1.6.1
@@ -27,6 +27,8 @@
 */
 /* $XFree86: xc/lib/font/util/utilbitmap.c,v 1.4 2001/01/17 19:43:34 dawes Exp $ */
 
+#ifndef USE_INTERNAL_FREETYPE
+
 /*
  * Author:  Keith Packard, MIT X Consortium
  */
@@ -181,3 +183,6 @@
     }
     return dstWidthBytes * height;
 }
+
+#endif /* !USE_INTERNAL_FREETYPE */
+




More information about the xorg-commit-diffs mailing list