Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ff8ca3b

Browse files
committed
Add missing float.h include to snprintf.c.
On windows _isnan() (which isnan() is redirected to in port/win32.h) is declared in float.h, not math.h. Per buildfarm animal currawong. Backpatch to all supported branches.
1 parent c036edb commit ff8ca3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/port/snprintf.c

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#include "c.h"
3434

3535
#include <ctype.h>
36+
#ifdef _MSC_VER
37+
#include <float.h> /* for _isnan */
38+
#endif
3639
#include <limits.h>
3740
#include <math.h>
3841
#ifndef WIN32

0 commit comments

Comments
 (0)