Fix GIT_EXTERN to actually mark the prototype as extern

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2008-11-03 16:29:03 -08:00
parent fbbfdf9f13
commit 3b8ab0b935

View File

@ -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. */