Some updates to make the code compatible with VC 9 (2008)

VC 9 doesn't support late variable declarations, and doesn't have inttypes
so we need some direct definitions of a couple of more types.
This commit is contained in:
John Arbash Meinel
2012-02-01 09:27:49 +01:00
parent faa535386a
commit 6a231e4b41
5 changed files with 18 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ int printbuf_memappend(struct printbuf *p, const char *buf, int size)
return size;
}
#if !HAVE_VSNPRINTF && defined(WIN32)
#if !HAVE_VSNPRINTF && defined(_MSC_VER)
# define vsnprintf _vsnprintf
#elif !HAVE_VSNPRINTF /* !HAVE_VSNPRINTF */
# error Need vsnprintf!