mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 21:56:44 +00:00
Merge pull request #411 from boyski/gcc4
Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
This commit is contained in:
commit
e311519dce
@ -22,7 +22,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
|
||||||
@ -33,7 +33,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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user