From eb52bba017492ac888445172c4dbe11e510afc81 Mon Sep 17 00:00:00 2001 From: Felipe Lema <1232306+FelipeLema@users.noreply.github.com> Date: Tue, 18 Jun 2019 11:19:32 -0400 Subject: [PATCH] fix 81692171 per https://github.com/aantron/better-enums/pull/74#discussion_r294577007 --- enum.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/enum.h b/enum.h index 766a6ad..dbaae52 100644 --- a/enum.h +++ b/enum.h @@ -33,9 +33,7 @@ # define BETTER_ENUMS_IGNORE_OLD_CAST_END # endif # endif -#endif -// msvc does not recognize `_Pragma` -#ifdef _MSC_VER +#else // empty definitions for compilers that don't support _Pragma # define BETTER_ENUMS_IGNORE_OLD_CAST_HEADER # define BETTER_ENUMS_IGNORE_OLD_CAST_BEGIN # define BETTER_ENUMS_IGNORE_OLD_CAST_END @@ -61,7 +59,9 @@ # define BETTER_ENUMS_NO_EXCEPTIONS # endif # endif -#else +#endif + +#ifdef _MSVC_VER # if _MSC_VER >= 1911 # define BETTER_ENUMS_HAVE_CONSTEXPR # endif