Silence a warning. Should we turn this into configure-time check?
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 22 Jan 2008 11:01:23 +0000 (11:01 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 22 Jan 2008 11:01:23 +0000 (11:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46251 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index e5ac201c346ee9e10f33d2036021e7aabcddc462..1497dd61edee9a3e0d1b9fb88fcf451a402925b0 100644 (file)
@@ -17,7 +17,7 @@
 
 // The VISIBILITY_HIDDEN macro, used for marking classes with the GCC-specific
 // visibility("hidden") attribute.
-#if __GNUC__ >= 4
+#if (__GNUC__ >= 4) && !defined(__MINGW32__)
 #define VISIBILITY_HIDDEN __attribute__ ((visibility("hidden")))
 #else
 #define VISIBILITY_HIDDEN