From 0b6eafe4e5e3df43aed8d612f5dfc478a10bd0f0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 17 Jan 1999 03:28:37 +0000 Subject: [PATCH] Fix for missing NAN. --- src/backend/utils/adt/float.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c index 6cebc15f7b..da400b8a4c 100644 --- a/src/backend/utils/adt/float.c +++ b/src/backend/utils/adt/float.c @@ -71,6 +71,10 @@ #define SHRT_MIN (-32768) #endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif + #define FORMAT 'g' /* use "g" output format as standard * format */ /* not sure what the following should be, but better to make it over-sufficient */ -- 2.39.5