Переглянути джерело

[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
  * 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
  *

Завантаження…
Відмінити
Зберегти