From 7f32add11640e86a22992d82fb3dc91352b16579 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 25 Jun 2019 11:29:15 +0000 Subject: [PATCH] It looks like this works in MSVC git-svn-id: https://svn.eduke32.com/eduke32@7706 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index ee8e0f344..68730b3fc 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -960,7 +960,7 @@ static FORCE_INLINE CONSTEXPR uint64_t B_SWAP64_impl(uint64_t value) } /* The purpose of B_PASS* as functions, as opposed to macros, is to prevent them from being used as lvalues. */ -#if CXXSTD >= 2011 +#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1900) template static FORCE_INLINE CONSTEXPR take_sign_t B_SWAP16(T x) {