Skip to content

Commit c9c1b25

Browse files
committed
Fix constexpr macros for MSVC STL
1 parent 223d4fa commit c9c1b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nh3api/core/nh3api_std/nh3api_std.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,15 @@
339339
#endif
340340

341341
#ifndef NH3API_CONSTEXPR_CPP_20
342-
#ifdef _CONSTEXPR20 // avoid stupid MSVC double inline warning
342+
#if NH3API_CHECK_CPP20 && defined(_CONSTEXPR20)
343343
#define NH3API_CONSTEXPR_CPP_20 constexpr
344344
#else
345345
#define NH3API_CONSTEXPR_CPP_20
346346
#endif
347347
#endif
348348

349349
#ifndef NH3API_CONSTEXPR_CPP_17
350-
#ifdef _CONSTEXPR17 // avoid stupid MSVC double inline warning
350+
#if NH3API_CHECK_CPP17 && defined(_CONSTEXPR17)
351351
#define NH3API_CONSTEXPR_CPP_17 constexpr
352352
#else
353353
#define NH3API_CONSTEXPR_CPP_17

0 commit comments

Comments
 (0)