Commit e311519d by Vicent Martí

Merge pull request #411 from boyski/gcc4

Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
parents 87d9869f d2a1861e
......@@ -22,7 +22,7 @@
#endif
/** Declare a public function exported for application use. */
#ifdef __GNUC__
#if __GNUC__ >= 4
# define GIT_EXTERN(type) extern \
__attribute__((visibility("default"))) \
type
......@@ -33,7 +33,7 @@
#endif
/** Declare a public TLS symbol exported for application use. */
#ifdef __GNUC__
#if __GNUC__ >= 4
# define GIT_EXTERN_TLS(type) extern \
__attribute__((visibility("default"))) \
GIT_TLS \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment