Patch from agorka to add some includes required for building with the GCC shipped...
[ardour.git] / libs / pbd / convert.cc
index 2ce99ba631c864413442b0c121c1ce6da505e91a..617fbec4736df9ed3f350df0234caf88e7e07184 100644 (file)
@@ -19,6 +19,8 @@
 
 #include <cmath>
 #include <stdint.h>
+#include <stdlib.h>
+#include <cstdio>
 #ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
 #endif
@@ -101,13 +103,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>