X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ffcarch.c;h=6ca15a991f7658284316493a9d1f89967fef653c;hb=00047ca256ef9a351039a0e900b8b784dc30e4c3;hp=44548fc1b82dab5822e339844f5a0fc06a1ced2c;hpb=cee10818de2ea9e0b9644ce4bbd1683e1edd5319;p=platform%2Fupstream%2Ffontconfig.git diff --git a/src/fcarch.c b/src/fcarch.c index 44548fc..6ca15a9 100644 --- a/src/fcarch.c +++ b/src/fcarch.c @@ -21,21 +21,9 @@ * PERFORMANCE OF THIS SOFTWARE. */ -#include - -#ifdef HAVE_CONFIG_H -#include -#endif - -/* If architecture is hardcoded, skip the assert tests */ - -#ifndef FC_ARCHITECTURE - -/* Make sure the cache structure is consistent with what we expect */ - #include "fcint.h" - #include "fcarch.h" +#include FC_ASSERT_STATIC (1 == sizeof (char)); FC_ASSERT_STATIC (2 == sizeof (FcChar16)); @@ -56,17 +44,15 @@ FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcStrSet *)); FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcCharLeaf **)); FC_ASSERT_STATIC (SIZEOF_VOID_P == sizeof (FcChar16 *)); -FC_ASSERT_STATIC (0x08 + 1*FC_MAX(4,ALIGNOF_DOUBLE) == sizeof (FcValue)); +FC_ASSERT_STATIC (0x08 + 1*FC_MAX(SIZEOF_VOID_P,ALIGNOF_DOUBLE) == sizeof (FcValue)); FC_ASSERT_STATIC (0x00 + 2*SIZEOF_VOID_P == sizeof (FcPatternElt)); FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcPattern)); FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcCharSet)); -FC_ASSERT_STATIC (0x08 + 6*SIZEOF_VOID_P == sizeof (FcCache)); - -#endif +FC_ASSERT_STATIC (0x10 + 6*SIZEOF_VOID_P == sizeof (FcCache)); int -main (int argc, char **argv) +main (int argc FC_UNUSED, char **argv FC_UNUSED) { printf ("%s\n", FC_ARCHITECTURE); return 0;