Skip to content

Commit

Permalink
Do not use the visibility attribute if NO_VIZ defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Feb 20, 2012
1 parent 8435052 commit e6d2a84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gzguts.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#endif

#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
#if ((GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400) && !defined(NO_VIZ)
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else
# define ZLIB_INTERNAL
Expand Down
2 changes: 1 addition & 1 deletion zutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define ZUTIL_H

#define GCC_VER ((__GNUC__-0) * 100 + __GNUC_MINOR__-0)
#if (GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400
#if ((GCC_VER >= 303 && !defined(__APPLE__)) || GCC_VER >= 400) && !defined(NO_VIZ)
# define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
#else
# define ZLIB_INTERNAL
Expand Down

0 comments on commit e6d2a84

Please sign in to comment.