summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69a7a23)
raw | patch | inline | side by side (parent: 69a7a23)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 10 Dec 2008 13:18:10 +0000 (13:18 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 10 Dec 2008 13:18:10 +0000 (13:18 +0000) |
se we better provide our own code here.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1705 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3@1705 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_restore.c | patch | blob | history |
index 2335f59298427a581f335d5b1bdec518c9a11247..f0de21a7b05d665b257492d800ea3fed84fa9103 100644 (file)
return (-1);
}
-#ifdef WIN32
- if (strcmp(str_ptr, " NaN ") == 0)
+ if (strstr(str_ptr, "NaN") != NULL)
{
*value = DNAN;
xmlFree(str_ptr);
return 0;
}
-#endif
end_ptr = NULL;
temp = strtod(str_ptr, &end_ptr);