From e23d2e3e40c4a80f4a43eee3424a53266701f8a2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 Aug 2014 12:09:49 +0000 Subject: Fix build on 8 and 9 where there is no std::strtoull. Do not bump revision since package content is unchanged. --- .../patch-libprogram_opts__src__string_convert.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 math/clasp/files/patch-libprogram_opts__src__string_convert.cpp (limited to 'math/clasp') diff --git a/math/clasp/files/patch-libprogram_opts__src__string_convert.cpp b/math/clasp/files/patch-libprogram_opts__src__string_convert.cpp new file mode 100644 index 000000000000..d2a78301f8a3 --- /dev/null +++ b/math/clasp/files/patch-libprogram_opts__src__string_convert.cpp @@ -0,0 +1,20 @@ +--- ./libprogram_opts/src/string_convert.cpp.orig 2014-08-12 18:47:21.000000000 +0300 ++++ ./libprogram_opts/src/string_convert.cpp 2014-08-27 14:59:59.000000000 +0300 +@@ -94,7 +94,7 @@ + err = (char*)x+2; + } + else if (*x != '-') { +- out = std::strtoul(x, &err, detectBase(x)); ++ out = strtoul(x, &err, detectBase(x)); + if (out == ULONG_MAX && errno == ERANGE) { err = (char*)x; } + } + else { err = (char*)x; } +@@ -191,7 +191,7 @@ + if (t) { out = temp; return t; } + if (empty(x, errPos) || *x == '-') { return 0; } + char* err; +- out = std::strtoull(x, &err, detectBase(x)); ++ out = strtoull(x, &err, detectBase(x)); + return parsed(err != x, err, errPos); + } + std::string& xconvert(std::string& out, long long x) { -- cgit v1.2.3