Browse Source

[build] Fix building on gcc 3

GCC did not support #pragma GCC visibility until version 4.0.
tags/v0.9.7
Michael Brown 15 years ago
parent
commit
b08e255ef1
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/include/compiler.h

+ 2
- 0
src/include/compiler.h View File

@@ -66,7 +66,9 @@ __asm__ ( ".equ\t" OBJECT_SYMBOL_STR ", 0" );
66 66
  * This is a stronger claim than specifying "-fvisibility=hidden",
67 67
  * since it also affects symbols marked with "extern".
68 68
  */
69
+#if __GNUC__ >= 4
69 70
 #pragma GCC visibility push(hidden)
71
+#endif
70 72
 
71 73
 /** @def DBG
72 74
  *

Loading…
Cancel
Save