From 0e425a33b71fcaff13e7931aacdd809480f6d6de Mon Sep 17 00:00:00 2001 From: neargye Date: Mon, 18 Nov 2019 12:46:12 +0500 Subject: [PATCH] fix macro for check support --- include/nameof.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nameof.hpp b/include/nameof.hpp index 1dc08e5..78462f2 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -45,11 +45,13 @@ // Checks nameof_type compiler compatibility. #if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER) +# undef NAMEOF_TYPE_SUPPORTED # define NAMEOF_TYPE_SUPPORTED 1 #endif // Checks nameof_enum compiler compatibility. #if defined(__clang__) || defined(__GNUC__) && __GNUC__>= 9 || defined(_MSC_VER) +# undef NAMEOF_ENUM_SUPPORTED # define NAMEOF_ENUM_SUPPORTED 1 #endif