mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
Don't use '__attribute__ visibility' with gcc unless it's at
version 4 or better.
This commit is contained in:
parent
3f3f6225f8
commit
d2a1861ea1
@ -40,7 +40,7 @@
|
||||
#endif
|
||||
|
||||
/** Declare a public function exported for application use. */
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ >= 4
|
||||
# define GIT_EXTERN(type) extern \
|
||||
__attribute__((visibility("default"))) \
|
||||
type
|
||||
@ -51,7 +51,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 \
|
||||
|
Loading…
Reference in New Issue
Block a user