From: Bruno Haible Date: Mon, 28 Oct 2019 00:25:21 +0000 (+0100) Subject: Fix compilation error with MSVC in 64-bit mode. X-Git-Tag: cln_1-3-5~9 X-Git-Url: https://www.ginac.de/CLN/cln.git//cln.git?a=commitdiff_plain;h=8eb5f60b70c1a47eff4fb2a309f5269bb4eb8f48;p=cln.git Fix compilation error with MSVC in 64-bit mode. * include/cln/types.h: Test _M_AMD64 in addition to __x86_64__. --- diff --git a/include/cln/types.h b/include/cln/types.h index 852cb45..7ec3770 100644 --- a/include/cln/types.h +++ b/include/cln/types.h @@ -51,7 +51,7 @@ #undef HAVE_LONGLONG #endif #endif - #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || defined(__x86_64__) || defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)) || defined(__e2k__) + #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__s390x__) || (defined(__sparc__) && defined(__arch64__)) || (defined(__x86_64__) || defined(_M_AMD64)) || defined(__aarch64__) || (defined(__riscv) && __riscv_xlen == 64)) || defined(__e2k__) // 64 bit registers in hardware #define HAVE_FAST_LONGLONG #endif