소스 검색

[build] Fix building on gcc 3

GCC did not support #pragma GCC visibility until version 4.0.
tags/v0.9.7
Michael Brown 16 년 전
부모
커밋
b08e255ef1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/include/compiler.h

+ 2
- 0
src/include/compiler.h 파일 보기

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

Loading…
취소
저장