summaryrefslogtreecommitdiff
path: root/src/git_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/git_common.h')
-rw-r--r--src/git_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/git_common.h b/src/git_common.h
index 6e19d89f3..6d8e93b83 100644
--- a/src/git_common.h
+++ b/src/git_common.h
@@ -56,7 +56,11 @@
GIT_BEGIN_DECL
/** Declare a public function exported for application use. */
-#define GIT_EXTERN(type) type
+#ifdef __GNUC__
+# define GIT_EXTERN(type) __attribute__((visibility("default"))) type
+#else
+# define GIT_EXTERN(type) type
+#endif
/** Generic result code for any API call. */
typedef int git_result_t;