]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix building on gcc 3
authorMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 02:14:46 +0000 (02:14 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 02:15:17 +0000 (02:15 +0000)
GCC did not support #pragma GCC visibility until version 4.0.

src/include/compiler.h

index 7b5a58d6231b881a453fab2f3ab1219dc9b1ff8c..889c24047b7ff74a308a6dbfd63419435ea4e6ae 100644 (file)
@@ -66,7 +66,9 @@ __asm__ ( ".equ\t" OBJECT_SYMBOL_STR ", 0" );
  * This is a stronger claim than specifying "-fvisibility=hidden",
  * since it also affects symbols marked with "extern".
  */
+#if __GNUC__ >= 4
 #pragma GCC visibility push(hidden)
+#endif
 
 /** @def DBG
  *