Commit d2a1861e by David Boyce

Don't use '__attribute__ visibility' with gcc unless it's at

version 4 or better.
parent 3f3f6225
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#endif #endif
/** Declare a public function exported for application use. */ /** Declare a public function exported for application use. */
#ifdef __GNUC__ #if __GNUC__ >= 4
# define GIT_EXTERN(type) extern \ # define GIT_EXTERN(type) extern \
__attribute__((visibility("default"))) \ __attribute__((visibility("default"))) \
type type
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#endif #endif
/** Declare a public TLS symbol exported for application use. */ /** Declare a public TLS symbol exported for application use. */
#ifdef __GNUC__ #if __GNUC__ >= 4
# define GIT_EXTERN_TLS(type) extern \ # define GIT_EXTERN_TLS(type) extern \
__attribute__((visibility("default"))) \ __attribute__((visibility("default"))) \
GIT_TLS \ 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