From 38be8fd6157e84285683ca4722d67a33e605e9b2 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 19 Mar 2013 08:35:41 +0100 Subject: [PATCH] add missing include for atoi --- src/lib/MWAWOLEParser.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/MWAWOLEParser.cxx b/src/lib/MWAWOLEParser.cxx index bb0bdb0..06c38bd 100644 --- a/src/lib/MWAWOLEParser.cxx +++ b/src/lib/MWAWOLEParser.cxx @@ -74,6 +74,7 @@ * ------------------------------------------------------------ */ +#include #include #include #include @@ -328,7 +329,7 @@ bool MWAWOLEParser::parse(MWAWInputStreamPtr file) std::string::size_type idP = pos-1; while (idP >=1 && dir[idP-1] >= '0' && dir[idP-1] <= '9') idP--; - int val = atoi(dir.substr(idP, idP-pos).c_str()); + int val = std::atoi(dir.substr(idP, idP-pos).c_str()); if (id[0] == -1) id[0] = val; else { id[1] = val; -- 1.8.1.4