diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-16 17:20:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-16 17:20:11 +0200 |
commit | 286e57d9e597f4821b17bf07c0686f75257bbc3d (patch) | |
tree | 433adb39c305251415f94761937266b16cfcbbe6 /compat | |
parent | 7db70bf6d7ccd92336f971078d28e8ad69b52bc1 (diff) |
compat/arch: fix pragma scope
Diffstat (limited to 'compat')
-rw-r--r-- | compat/arch.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/compat/arch.hpp b/compat/arch.hpp index 33f8f8ca..3120116a 100644 --- a/compat/arch.hpp +++ b/compat/arch.hpp @@ -6,13 +6,13 @@ // can be copied, modified, and redistributed freely with // no conditions. there's no warranty. -sh 20181226 -#ifdef __clang__ -# pragma clang diagnostic push -# pragma clang diagnostic ignored "-Wreserved-id-macro" -# pragma clang diagnostic ignored "-Wunused-macros" -#endif - #if defined _MSC_VER +# ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wreserved-id-macro" +# pragma clang diagnostic ignored "-Wunused-macros" +# endif + # if defined _M_AMD64 # undef __x86_64__ # define __x86_64__ 1 @@ -30,10 +30,10 @@ # define __SSE2__ 1 # define __SSE3__ 1 // assume SSE3 in the _M_IX86_FP >= 2 case # endif -#endif -#ifdef __clang__ -# pragma clang diagnostic pop +# ifdef __clang__ +# pragma clang diagnostic pop +# endif #endif #if defined __SSE3__ |