From: Marko Kreen Date: Wed, 9 Jul 2014 17:02:28 +0000 (+0300) Subject: msvc: fail on non-x86, instead miscompiling X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=971d60b4400eccc2f17abb09b64e7676ddd0f606;p=libusual.git msvc: fail on non-x86, instead miscompiling --- 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. */