From 6b35217b3d96dc9f468b4ce47e9d73c02cef110a Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 27 Nov 2025 20:02:00 +0100 Subject: Back out MSVC LJ_CONSTF declaration. The reason for the error message is still unclear. #1412. --- src/lj_def.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lj_def.h b/src/lj_def.h index f34b1a39..25e827c4 100644 --- a/src/lj_def.h +++ b/src/lj_def.h @@ -246,7 +246,12 @@ static LJ_AINLINE uint32_t lj_getu32(const void *p) #define LJ_INLINE __inline #define LJ_AINLINE __forceinline #define LJ_NOINLINE __declspec(noinline) +#if MSVC_BROKEN +/* Unclear why this doesn't work, see #1412. */ #define LJ_CONSTF __declspec(nothrow noalias) +#else +#define LJ_CONSTF +#endif #if defined(_M_IX86) #define LJ_FASTCALL __fastcall #endif -- cgit v1.2.3-55-g6feb