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

version 4 or better.
This commit is contained in:
David Boyce 2011-09-18 21:27:25 -04:00
parent 3f3f6225f8
commit d2a1861ea1

View File

@ -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 @@
#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 \