From 971d60b4400eccc2f17abb09b64e7676ddd0f606 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 9 Jul 2014 20:02:28 +0300 Subject: [PATCH] msvc: fail on non-x86, instead miscompiling --- usual/config_msvc.h | 10 +++------- 1 file 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 doesn't define. */ -- 2.39.5