OSDN Git Service

Symbol visibility is unsupported on cygwin too.
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 31 Oct 2008 18:05:01 +0000 (18:05 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 31 Oct 2008 18:05:01 +0000 (18:05 +0000)
Patch by Jay Foad!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58520 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

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