diff --git a/src/common.h b/src/common.h index a0e47df9a..71182bbb9 100644 --- a/src/common.h +++ b/src/common.h @@ -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.