Fix C99 __func__ for MSVC

This commit is contained in:
Russell Belfer 2013-12-06 15:20:41 -08:00
parent 25e0b1576d
commit 60058018dc

View File

@ -94,7 +94,11 @@ GIT_INLINE(int) giterr_set_callback(int error_code, const char *action)
return error_code; 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__) #define GITERR_CALLBACK(code) giterr_set_callback((code), __func__)
#endif
/** /**
* Gets the system error code for this thread. * Gets the system error code for this thread.