Commit cde32d4d by Jacques Germishuys

Variadic macros is only available from Visual Studio 2005+

parent ab864e9c
......@@ -46,8 +46,16 @@ GIT_INLINE(void) git_trace__write_fmt(
#else
GIT_INLINE(void) git_trace__null(
git_trace_level_t level,
const char *fmt, ...)
{
GIT_UNUSED(level);
GIT_UNUSED(fmt);
}
#define git_trace_level() ((void)0)
#define git_trace(lvl, ...) ((void)0)
#define git_trace git_trace__null
#endif
......
......@@ -38,7 +38,7 @@
typedef SSIZE_T ssize_t;
/* define snprintf using variadic macro support if available */
#if _MSC_VER >= 1400
#if _MSC_VER >= 1500
# define snprintf(BUF, SZ, FMT, ...) _snprintf_s(BUF, SZ, _TRUNCATE, FMT, __VA_ARGS__)
#else
# define snprintf _snprintf
......
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