msvc: fail on non-x86, instead miscompiling
authorMarko Kreen <markokr@gmail.com>
Wed, 9 Jul 2014 17:02:28 +0000 (20:02 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 14 Jul 2014 11:01:18 +0000 (14:01 +0300)
usual/config_msvc.h

index 32f74c454f23861b536219e44a79145a44f04953..1fe28555a15c4ccf6f3150008c9b18a071c098ed 100644 (file)
 
 /* 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
+#if defined(_M_IX86) || defined(_M_X64)
 /* #  undef WORDS_BIGENDIAN */
-# endif
+#else
+#error "Unsupported MSVC target CPU"
 #endif
 
 /* Define to `int' if <sys/types.h> doesn't define. */