summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c10dce0)
raw | patch | inline | side by side (parent: c10dce0)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 5 Jul 2009 07:53:28 +0000 (07:53 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 5 Jul 2009 07:53:28 +0000 (07:53 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1865 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index cc95f724b22f5df8996b2ab8265c33570ec2b37d..56b8e7ad282c204699248779c08775b2675a0a40 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
return (0);
} /* int get_ulong_from_node */
+
+#ifdef WIN32
+/* Gross Hack Alert */
+#if _MSC_VER < 1300
+#define strtoll(p, e, b) ((*(e) = (char*)(p) + (((b) == 10) ? strspn((p), "0123456789") : 0)), _atoi64(p))
+#else
+#define strtoll(p, e, b) _strtoi64(p, e, b)
+#endif
+#endif
+
static int get_llong_from_node(
xmlDoc * doc,
xmlNode * node,
}
end_ptr = NULL;
- temp = strtoll(str_ptr, &end_ptr, 0);
+ temp = strtoll(str_ptr, &end_ptr, 10);
xmlFree(str_ptr);
if (str_ptr == end_ptr) {