Commit 3b8ab0b93539049b0f7c4a09f5dad48a1d89cd49

Shawn O. Pearce 2008-11-03T16:29:03

Fix GIT_EXTERN to actually mark the prototype as extern Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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. */