feat: use MSVC_LANG after 2015 Update 3

This commit is contained in:
ToruNiina 2024-06-16 19:33:22 +09:00
parent 6f05bffb5f
commit 5c4722fb5d

View File

@ -21,7 +21,7 @@
// https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170
//
#if defined(_MSVC_LANG) && defined(_MSC_VER) && 1910 <= _MSC_VER
#if defined(_MSVC_LANG) && defined(_MSC_VER) && 190024210 <= _MSC_FULL_VER
# define TOML11_CPLUSPLUS_STANDARD_VERSION _MSVC_LANG
#else
# define TOML11_CPLUSPLUS_STANDARD_VERSION __cplusplus