For building with MSVC, std::strtof() didn't get introduced until VS2013
authorJohn Emmas <johne53@tiscali.co.uk>
Thu, 8 Dec 2016 13:57:23 +0000 (13:57 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Thu, 8 Dec 2016 13:57:23 +0000 (13:57 +0000)
(use std::strtod() in earlier versions)

libs/pbd/configuration_variable.cc

index cde1d15bf186bd348ef9fbb965197bc916ceea33..0e2d6c739a9392a1ec5f8969fa779749c4f2d2cf 100644 (file)
 #include "pbd/configuration_variable.h"
 #include "pbd/debug.h"
 
+#if defined(_MSC_VER) && (_MSC_VER < 1800)
+// MSVC only introduced std::strtof in VS2013
+#define strtof(s, e) strtod(s, e)
+#endif
+
 using namespace std;
 using namespace PBD;