提交 a75d6ea0 编写于 作者: M Mark Adler

Require gcc 4.0 or later on Mac OS X to use the hidden attribute.

上级 66010333
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
# endif # endif
#endif #endif
#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) #define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
# define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else #else
# define ZLIB_INTERNAL # define ZLIB_INTERNAL
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
#ifndef ZUTIL_H #ifndef ZUTIL_H
#define ZUTIL_H #define ZUTIL_H
#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ) #define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
# define ZLIB_INTERNAL __attribute__((visibility ("hidden"))) # define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else #else
# define ZLIB_INTERNAL # define ZLIB_INTERNAL
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册