aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2009-02-03 09:20:49 +1000
committerGravatar axel <axel@liljencrantz.se>2009-02-03 09:20:49 +1000
commit35258bf1fbf54cd0405755be0bf5a7e422a58fc1 (patch)
tree1d2f1b60314f2ac619b6ba0ca75457f89377aa02 /fallback.h
parent72025a6a38e3aed4dadab5013dc64e0a432ba992 (diff)
Make proper autoconf test for availability of posix nan function instead of fudging with the NAN macro.
darcs-hash:20090202232049-ac50b-0176955677ff39fdd05eeefa20dca883863c34e6.gz
Diffstat (limited to 'fallback.h')
-rw-r--r--fallback.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fallback.h b/fallback.h
index 68bbcff4..e4813fb2 100644
--- a/fallback.h
+++ b/fallback.h
@@ -469,8 +469,9 @@ long sysconf(int name);
#endif
-#ifndef NAN
-#define NAN (0.0/0.0)
+#ifndef HAVE_NAN
+double nan(char *tagp);
#endif
+
#endif