summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2014-07-09 17:02:28 +0000
committerMarko Kreen2014-07-14 11:01:18 +0000
commit971d60b4400eccc2f17abb09b64e7676ddd0f606 (patch)
tree592870664277657913159e900bebf9d9e73fb061
parent4ec5634f4bc80137c9db20998fb1669433fa86a4 (diff)
msvc: fail on non-x86, instead miscompiling
-rw-r--r--usual/config_msvc.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/usual/config_msvc.h b/usual/config_msvc.h
index 32f74c4..1fe2855 100644
--- a/usual/config_msvc.h
+++ b/usual/config_msvc.h
@@ -56,14 +56,10 @@
/* 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. */