Browse Source

ENH: add stdlib.h for portability to borland 6

Bill Hoffman 22 years ago
parent
commit
ca773a5d6d

+ 1 - 0
Source/cmAbstractFilesCommand.cxx

@@ -17,6 +17,7 @@
 #include "cmAbstractFilesCommand.h"
 #include "cmMakefile.h"
 #include "cmSourceFile.h"
+#include <stdlib.h> // required for atof
 
 // cmAbstractFilesCommand
 bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& args)

+ 1 - 1
Source/cmEndIfCommand.cxx

@@ -15,7 +15,7 @@
 
 =========================================================================*/
 #include "cmEndIfCommand.h"
-
+#include <stdlib.h> // required for atof
 bool cmEndIfCommand::InitialPass(std::vector<std::string> const&)
 {
   const char* versionValue

+ 1 - 0
Source/cmGlobalGenerator.cxx

@@ -18,6 +18,7 @@
 #include "cmLocalGenerator.h"
 #include "cmake.h"
 #include "cmMakefile.h"
+#include <stdlib.h> // required for atof
 
 cmGlobalGenerator::cmGlobalGenerator()
 {

+ 1 - 0
Source/cmIfCommand.cxx

@@ -15,6 +15,7 @@
 
 =========================================================================*/
 #include "cmIfCommand.h"
+#include <stdlib.h> // required for atof
 
 bool cmIfFunctionBlocker::
 IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf)

+ 1 - 0
Source/cmSourceFilesCommand.cxx

@@ -15,6 +15,7 @@
 
 =========================================================================*/
 #include "cmSourceFilesCommand.h"
+#include <stdlib.h> // required for atof
 
 // cmSourceFilesCommand
 bool cmSourceFilesCommand::InitialPass(std::vector<std::string> const& args)

+ 1 - 0
Source/cmSourceFilesRemoveCommand.cxx

@@ -15,6 +15,7 @@
 
 =========================================================================*/
 #include "cmSourceFilesRemoveCommand.h"
+#include <stdlib.h> // required for atof
 
 // cmSourceFilesRemoveCommand
 bool cmSourceFilesRemoveCommand::InitialPass(std::vector<std::string> const& args)

+ 1 - 0
Source/cmTarget.cxx

@@ -20,6 +20,7 @@
 
 #include <map>
 #include <set>
+#include <stdlib.h> // required for atof
 
 
 void cmTarget::SetType(TargetType type)

+ 1 - 0
Source/cmWrapExcludeFilesCommand.cxx

@@ -15,6 +15,7 @@
 
 =========================================================================*/
 #include "cmWrapExcludeFilesCommand.h"
+#include <stdlib.h> // required for atof
 
 // cmWrapExcludeFilesCommand
 bool cmWrapExcludeFilesCommand::InitialPass(std::vector<std::string> const& argsIn)