[llvm-commits] [llvm] r46251 - /llvm/trunk/include/llvm/Support/Compiler.h

Anton Korobeynikov asl at math.spbu.ru
Tue Jan 22 03:01:23 PST 2008


Author: asl
Date: Tue Jan 22 05:01:23 2008
New Revision: 46251

URL: http://llvm.org/viewvc/llvm-project?rev=46251&view=rev
Log:
Silence a warning. Should we turn this into configure-time check?

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=46251&r1=46250&r2=46251&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Tue Jan 22 05:01:23 2008
@@ -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





More information about the llvm-commits mailing list