From 65655da087f7dd32f27cf243ea3ba59609764a3a Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Mon, 21 Sep 2015 03:09:33 -0700 Subject: [PATCH] Tidy testing for _MSC_VER --- include/array_view.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/array_view.h b/include/array_view.h index fb103c9..006f18c 100644 --- a/include/array_view.h +++ b/include/array_view.h @@ -52,12 +52,10 @@ #endif // _NOEXCEPT -#if _MSC_VER -#if _MSC_VER <= 1800 +#if defined(_MSC_VER) && _MSC_VER <= 1800 #pragma warning(push) #pragma warning(disable: 4351) // warns about newly introduced aggregate initializer behavior #endif // _MSC_VER <= 1800 -#endif namespace Guide { @@ -2283,10 +2281,8 @@ general_array_view_iterator operator+(typename general_array_view_ite } // namespace Guide -#if _MSC_VER -#if _MSC_VER <= 1800 +#if defined(_MSC_VER) && _MSC_VER <= 1800 #pragma warning(pop) #endif // _MSC_VER <= 1800 -#endif #pragma pop_macro("_NOEXCEPT")