Content-Length: 259065 | pFad | http://github.com/postgrespro/postgres/commit/490a91894f14df1000273973b54f2b254ab42ed9

78 Add missing float.h include to snprintf.c. · postgrespro/postgres@490a918 · GitHub
Skip to content

Commit 490a918

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 506a519 commit 490a918

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/490a91894f14df1000273973b54f2b254ab42ed9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy