Skip to content

Commit eae798a

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 9f20f2f commit eae798a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/port/snprintf.c

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy