Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

version 4 or better.
  • Loading branch information...
commit d2a1861ea1fde6c1f4fe68aa4cc7f3602db92b1f 1 parent 3f3f622
David Boyce authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/git2/common.h
View
4 include/git2/common.h
@@ -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 \
Please sign in to comment.
Something went wrong with that request. Please try again.