Fix GIT_EXTERN to actually mark the prototype as extern Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
diff --git a/include/git/common.h b/include/git/common.h
index 5841342..60f4720 100644
--- a/include/git/common.h
+++ b/include/git/common.h
@@ -38,9 +38,11 @@
/** Declare a public function exported for application use. */
#ifdef __GNUC__
-# define GIT_EXTERN(type) __attribute__((visibility("default"))) type
+# define GIT_EXTERN(type) extern \
+ __attribute__((visibility("default"))) \
+ type
#else
-# define GIT_EXTERN(type) type
+# define GIT_EXTERN(type) extern type
#endif
/** Declare a function's takes printf style arguments. */