]> granicus.if.org Git - llvm/commitdiff
Limit disabling of warnings emitted from r301571 by checking __GNUC__.
authorFrederich Munch <colsebas@hotmail.com>
Thu, 27 Apr 2017 18:05:29 +0000 (18:05 +0000)
committerFrederich Munch <colsebas@hotmail.com>
Thu, 27 Apr 2017 18:05:29 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301572 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Support/DynamicLibrary/PipSqueak.cxx

index c54de6759dc37fe1d8837d6d3d995cb724220edd..d1cf7c042b7274abfe04afdf852655eebaad9994 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "PipSqueak.h"
 
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__GNUC__)
 // Disable warnings from inclusion of xlocale & exception
 #pragma warning(push)
 #pragma warning(disable: 4530)