Skip to content

Commit 326bdc4

Browse files
authored
Merge pull request #2305 from Alexander-Barth/isnan-mingw32
use isnan instead of _fpclass on non-MSVC compilers
2 parents 6e8e1c3 + 4ae187d commit 326bdc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnczarr/zcvt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ NCZ_stringconvert1(nc_type srctype, size_t len, char* src, NCjson* jvalue)
302302
snprintf(s,sizeof(s),"%llu",zcvt.uint64v);
303303
} break;
304304
case NC_DOUBLE: {
305-
#ifdef _WIN32
305+
#ifdef _MSC_VER
306306
switch (_fpclass(zcvt.float64v)) {
307307
case _FPCLASS_SNAN: case _FPCLASS_QNAN:
308308
strcpy(s,"NaN"); break;

0 commit comments

Comments
 (0)