Make proper autoconf test for availability of posix nan function instead of fudging with the NAN macro.

darcs-hash:20090202232049-ac50b-0176955677ff39fdd05eeefa20dca883863c34e6.gz
This commit is contained in:
axel
2009-02-03 09:20:49 +10:00
parent 72025a6a38
commit 35258bf1fb
4 changed files with 13 additions and 4 deletions

View File

@@ -1183,5 +1183,12 @@ long sysconf(int name)
return -1;
}
#endif
#ifndef HAVE_NAN
double nan(char *tagp)
{
return 0.0/0.0;
}
#endif