Skip to content

Commit 70fdc25

Browse files
committed
Merge pull request #4778 from Komnomnomnom/json-win-build-oops
BLD: windows builds failing in pandas.json (#4764)
2 parents 477b13c + 2b8dd1b commit 70fdc25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/src/ujson/lib/ultrajsonenc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ int Buffer_AppendDoubleUnchecked(JSOBJ obj, JSONObjectEncoder *enc, double value
549549
{
550550
precision_str[0] = '%';
551551
precision_str[1] = '.';
552-
#ifdef _WIN32
552+
#if defined(_WIN32) && defined(_MSC_VER)
553553
sprintf_s(precision_str+2, sizeof(precision_str)-2, "%ug", enc->doublePrecision);
554554
enc->offset += sprintf_s(str, enc->end - enc->offset, precision_str, neg ? -value : value);
555555
#else

0 commit comments

Comments
 (0)