aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-02-16 02:14:46 +0000
committerMichael Brown <mcb30@etherboot.org>2009-02-16 02:15:17 +0000
commitb08e255ef137f1b4e392728fce291ffb4ca60307 (patch)
treef12cc181ce45d0063e4a62b8764d6c259e8cf200
parent78a57a6f7613d538eabca4208ffb356df11c9240 (diff)
downloadipxe-b08e255ef137f1b4e392728fce291ffb4ca60307.zip
ipxe-b08e255ef137f1b4e392728fce291ffb4ca60307.tar.gz
ipxe-b08e255ef137f1b4e392728fce291ffb4ca60307.tar.bz2
[build] Fix building on gcc 3
GCC did not support #pragma GCC visibility until version 4.0.
-rw-r--r--src/include/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h
index 7b5a58d..889c240 100644
--- a/src/include/compiler.h
+++ b/src/include/compiler.h
@@ -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
*