From 3b8ab0b93539049b0f7c4a09f5dad48a1d89cd49 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 3 Nov 2008 16:29:03 -0800 Subject: [PATCH] Fix GIT_EXTERN to actually mark the prototype as extern Signed-off-by: Shawn O. Pearce --- include/git/common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/git/common.h b/include/git/common.h index 5841342a0..60f4720d8 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. */