From fb480caab263f4edab4a315472bfe60b408183ec Mon Sep 17 00:00:00 2001 From: neargye Date: Sat, 3 Apr 2021 00:32:17 +0300 Subject: [PATCH] fix checks --- include/nameof.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index de63310..332345d 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -95,7 +95,7 @@ #endif // Checks nameof_member compiler compatibility. -#if defined(__clang__) && __clang_major__ >= 5 || defined(__GNUC__) && __GNUC__ >= 7 +#if (defined(__clang__) && __clang_major__ >= 5 || defined(__GNUC__) && __GNUC__ >= 7) && !defined(_MSC_VER) # undef NAMEOF_MEMBER_SUPPORTED # define NAMEOF_MEMBER_SUPPORTED 1 #endif