Back out MSVC LJ_CONSTF declaration.

The reason for the error message is still unclear. #1412.
This commit is contained in:
Mike Pall
2025-11-27 20:02:00 +01:00
parent 1acb204447
commit 6b35217b3d

View File

@@ -246,7 +246,12 @@ static LJ_AINLINE uint32_t lj_getu32(const void *p)
#define LJ_INLINE __inline #define LJ_INLINE __inline
#define LJ_AINLINE __forceinline #define LJ_AINLINE __forceinline
#define LJ_NOINLINE __declspec(noinline) #define LJ_NOINLINE __declspec(noinline)
#if MSVC_BROKEN
/* Unclear why this doesn't work, see #1412. */
#define LJ_CONSTF __declspec(nothrow noalias) #define LJ_CONSTF __declspec(nothrow noalias)
#else
#define LJ_CONSTF
#endif
#if defined(_M_IX86) #if defined(_M_IX86)
#define LJ_FASTCALL __fastcall #define LJ_FASTCALL __fastcall
#endif #endif