You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
From 38be8fd6157e84285683ca4722d67a33e605e9b2 Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
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 <cstdlib>
|
|
#include <cstring>
|
|
#include <iostream>
|
|
#include <map>
|
|
@@ -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
|
|
|