mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 18:21:14 +00:00
Fix C99 __func__ for MSVC
This commit is contained in:
parent
25e0b1576d
commit
60058018dc
@ -94,7 +94,11 @@ GIT_INLINE(int) giterr_set_callback(int error_code, const char *action)
|
||||
return error_code;
|
||||
}
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
#define GITERR_CALLBACK(code) giterr_set_callback((code), __FUNCTION__)
|
||||
#else
|
||||
#define GITERR_CALLBACK(code) giterr_set_callback((code), __func__)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Gets the system error code for this thread.
|
||||
|
Loading…
Reference in New Issue
Block a user