Permalink
Browse files

Update config.h.in for Apple universal build

  • Loading branch information...
1 parent 415a847 commit b7dafff640408527578be50a53f436ff4a07d66a @kfish committed Feb 3, 2010
Showing with 14 additions and 3 deletions.
  1. +14 −3 config.h.in
View
@@ -1,5 +1,8 @@
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
/* Do not build decoding support */
#undef FS_DECODE
@@ -100,9 +103,17 @@
/* Version number of package */
#undef VERSION
-/* Define to 1 if your processor stores words with the most significant byte
- first (like Motorola and SPARC, unlike Intel and VAX). */
-#undef WORDS_BIGENDIAN
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
+#endif
/* Define to empty if `const' does not conform to ANSI C. */
#undef const

0 comments on commit b7dafff

Please sign in to comment.