Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[build] Fix building on gcc 3
GCC did not support #pragma GCC visibility until version 4.0.
  • Loading branch information
Michael Brown committed Feb 16, 2009
1 parent 78a57a6 commit b08e255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/compiler.h
Expand Up @@ -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
*
Expand Down

0 comments on commit b08e255

Please sign in to comment.