gnucash master: MinGW doesn't support stoi, use atoi instead.
John Ralls
jralls at code.gnucash.org
Thu Jun 30 17:11:13 EDT 2016
Updated via https://github.com/Gnucash/gnucash/commit/4be44045 (commit)
from https://github.com/Gnucash/gnucash/commit/9a8ed932 (commit)
commit 4be440457584269335dfcbbee7072fe72f820158
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Jun 30 14:09:25 2016 -0700
MinGW doesn't support stoi, use atoi instead.
diff --git a/src/libqof/qof/gnc-datetime.cpp b/src/libqof/qof/gnc-datetime.cpp
index 8e0c513..a96d3c4 100644
--- a/src/libqof/qof/gnc-datetime.cpp
+++ b/src/libqof/qof/gnc-datetime.cpp
@@ -32,6 +32,7 @@ extern "C"
#include <memory>
#include <iostream>
#include <sstream>
+#include <string>
#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");
Summary of changes:
src/libqof/qof/gnc-datetime.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list