瀏覽代碼

[build] Fix building on gcc 3

GCC did not support #pragma GCC visibility until version 4.0.
tags/v0.9.7
Michael Brown 15 年之前
父節點
當前提交
b08e255ef1
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/include/compiler.h

+ 2
- 0
src/include/compiler.h 查看文件

@@ -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…
取消
儲存