From 60058018dcadbaa1f70281c9d29faf1e46d3a87c Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Fri, 6 Dec 2013 15:20:41 -0800 Subject: [PATCH] Fix C99 __func__ for MSVC --- src/common.h | 4 ++++ 1 file changed, 4 insertions(+) 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.