mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-26 03:42:28 +00:00
Fix GIT_EXTERN to actually mark the prototype as extern
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
fbbfdf9f13
commit
3b8ab0b935
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user