diff options
| -rw-r--r-- | src/lj_def.h | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
| 246 | #define LJ_INLINE __inline | 246 | #define LJ_INLINE __inline |
| 247 | #define LJ_AINLINE __forceinline | 247 | #define LJ_AINLINE __forceinline |
| 248 | #define LJ_NOINLINE __declspec(noinline) | 248 | #define LJ_NOINLINE __declspec(noinline) |
| 249 | #if MSVC_BROKEN | ||
| 250 | /* Unclear why this doesn't work, see #1412. */ | ||
| 249 | #define LJ_CONSTF __declspec(nothrow noalias) | 251 | #define LJ_CONSTF __declspec(nothrow noalias) |
| 252 | #else | ||
| 253 | #define LJ_CONSTF | ||
| 254 | #endif | ||
| 250 | #if defined(_M_IX86) | 255 | #if defined(_M_IX86) |
| 251 | #define LJ_FASTCALL __fastcall | 256 | #define LJ_FASTCALL __fastcall |
| 252 | #endif | 257 | #endif |
