Commit 60058018 by Russell Belfer

Fix C99 __func__ for MSVC

parent 25e0b157
...@@ -94,7 +94,11 @@ GIT_INLINE(int) giterr_set_callback(int error_code, const char *action) ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment