From 4be440457584269335dfcbbee7072fe72f820158 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 30 Jun 2016 14:09:25 -0700 Subject: [PATCH] MinGW doesn't support stoi, use atoi instead. --- src/libqof/qof/gnc-datetime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libqof/qof/gnc-datetime.cpp b/src/libqof/qof/gnc-datetime.cpp index 8e0c513bd6..a96d3c4f3d 100644 --- a/src/libqof/qof/gnc-datetime.cpp +++ b/src/libqof/qof/gnc-datetime.cpp @@ -32,6 +32,7 @@ extern "C" #include #include #include +#include #include "gnc-timezone.hpp" #include "gnc-datetime.hpp" @@ -179,7 +180,7 @@ GncDateTimeImpl::GncDateTimeImpl(const std::string str) : (tzstr.length() > 10 ? tzstr[10] != '0' : !tzstr.compare(10, 11, "00"))) { - offset = stoi(tzstr.substr(10,11)); + offset = atoi(tzstr.substr(10,11).c_str()); if (offset && tzpos == '-') offset = -offset; tzstr.replace(10, 11, "00");