- Added missing includes.
This commit is contained in:
Paul Beckingham 2011-05-30 01:24:25 -04:00
parent 9e3c6f5bc1
commit a1dee148b4
2 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,7 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <sstream> #include <sstream>
#include <stdlib.h>
#include <Context.h> #include <Context.h>
#include <text.h> #include <text.h>
#include <util.h> #include <util.h>
@ -117,7 +118,7 @@ int CmdAdd::execute (const std::string&, std::string& output)
std::vector <std::string>::iterator i; std::vector <std::string>::iterator i;
for (i = deps.begin (); i != deps.end (); i++) for (i = deps.begin (); i != deps.end (); i++)
{ {
int id = atoi (i->c_str ()); int id = strtol (i->c_str (), NULL, 10);
if (id < 0) if (id < 0)
context.task.removeDependency (-id); context.task.removeDependency (-id);
else else

View file

@ -26,6 +26,8 @@
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#include <sstream> #include <sstream>
#include <algorithm>
#include <string.h>
#include <math.h> #include <math.h>
#include <Context.h> #include <Context.h>
#include <Date.h> #include <Date.h>