From: Michael Brown Date: Mon, 16 Feb 2009 02:14:46 +0000 (+0000) Subject: [build] Fix building on gcc 3 X-Git-Tag: v0.9.7~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b08e255ef137f1b4e392728fce291ffb4ca60307;p=thirdparty%2Fipxe.git [build] Fix building on gcc 3 GCC did not support #pragma GCC visibility until version 4.0. --- diff --git a/src/include/compiler.h b/src/include/compiler.h index 7b5a58d62..889c24047 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 *