Commit 3b8ab0b9 by Shawn O. Pearce

Fix GIT_EXTERN to actually mark the prototype as extern

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent fbbfdf9f
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment