summaryrefslogtreecommitdiff
path: root/printbuf.c
diff options
context:
space:
mode:
authorJohn Arbash Meinel <john@arbash-meinel.com>2012-02-01 09:27:49 +0100
committerJohn Arbash Meinel <john@arbash-meinel.com>2012-02-01 09:27:49 +0100
commit6a231e4b414bc0fde02b4b6a66929302bd8ce6f6 (patch)
tree99b9f85f6d56bc007e534e86865a1780fc0db09a /printbuf.c
parentfaa535386a0c0a984caa4cc522d0cf70c97bc68f (diff)
downloadjson-c-6a231e4b414bc0fde02b4b6a66929302bd8ce6f6.tar.gz
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.
Diffstat (limited to 'printbuf.c')
-rw-r--r--printbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/printbuf.c b/printbuf.c
index 6ed1e94..e8902c8 100644
--- a/printbuf.c
+++ b/printbuf.c
@@ -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!