From 9798626053a27283634ce02dc2551884fd0bb212 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Tue, 4 Jan 2011 18:09:41 -0500 Subject: [PATCH] RUBY-188 fix for bson_ext on Windows --- ext/cbson/cbson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/cbson/cbson.c b/ext/cbson/cbson.c index 3f15a32..c89868f 100644 --- a/ext/cbson/cbson.c +++ b/ext/cbson/cbson.c @@ -155,7 +155,7 @@ static void write_utf8(buffer_t buffer, VALUE string, char check_null) { * either use _scprintf and _snprintf on for Windows or * use snprintf for solaris. */ #ifndef HAVE_ASPRINTF -#ifdef _MSC_VER +#ifdef _WIN32 || _MSC_VER #define INT2STRING(buffer, i) \ { \ int vslength = _scprintf("%d", i) + 1; \