Fixes for GCC 4.3.
[ardour.git] / libs / pbd / convert.cc
index 2ce99ba631c864413442b0c121c1ce6da505e91a..fc84bbad5e060fe9a8402595548e5be051ad2c65 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <cmath>
 #include <stdint.h>
+#include <stdlib.h>
 #ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
 #endif
@@ -101,13 +102,13 @@ short_version (string orig, string::size_type target_length)
 int
 atoi (const string& s)
 {
-       return std::atoi (s.c_str());
+       return ::atoi (s.c_str());
 }
 
 double
 atof (const string& s)
 {
-       return std::atof (s.c_str());
+       return ::atof (s.c_str());
 }
 
 vector<string>