git-compat-util.h: #undef (v)snprintf before #define them

When we detect that vsnprintf / snprintf are broken, we #define them to an alternative implementation. On OS X, stdio.h already re-define them in `git-compat-util.h'. Signed-off-by: Benoit Sigoure <tsunanet@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Benoit Sigoure committed Jan 30, 2014 at 22:25 UTC ab03803c02ef6b41ed5086771bab2de4860c96a9
1 file changed +6
git-compat-util.h
+6
@@ -374,9 +374,15 @@ extern FILE *git_fopen(const char*, const char*);
374 #endif
375
376 #ifdef SNPRINTF_RETURNS_BOGUS
377 +#ifdef snprintf
378 +#undef snprintf
379 +#endif
380 #define snprintf git_snprintf
381 extern int git_snprintf(char *str, size_t maxsize,
382 const char *format, ...);
383 +#ifdef vsnprintf
384 +#undef vsnprintf
385 +#endif
386 #define vsnprintf git_vsnprintf
387 extern int git_vsnprintf(char *str, size_t maxsize,
388 const char *format, va_list ap);