RUBY-188 fix for bson_ext on Windows

This commit is contained in:
Kyle Banker 2011-01-04 18:09:41 -05:00
parent e55136e056
commit 9798626053
1 changed files with 1 additions and 1 deletions

View File

@ -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; \