[Fontconfig] [PATCH 7/9] fix build warnings when using --with-arch

Mike Frysinger vapier at gentoo.org
Tue Feb 21 11:19:20 PST 2012


Latest configure code will setup FC_ARCHITECTURE directly rather than
going through ARCHITECTURE, so update fcarch.h accordingly.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 src/fcarch.h |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/fcarch.h b/src/fcarch.h
index 0c8cd05..9cabf04 100644
--- a/src/fcarch.h
+++ b/src/fcarch.h
@@ -62,9 +62,8 @@
 # define FC_ARCH_SIZE_ALIGN "64"
 #endif
 
-#ifdef ARCHITECTURE
-# define ARCHITECTURE FC_ARCHITECTURE
-#else
+/* config.h might override this */
+#ifndef FC_ARCHITECTURE
 # define FC_ARCHITECTURE FC_ARCH_ENDIAN FC_ARCH_SIZE_ALIGN
 #endif
 
-- 
1.7.8.4



More information about the Fontconfig mailing list