For building with MSVC, std::strtof() didn't get introduced until VS2013

(use std::strtod() in earlier versions)
This commit is contained in:
John Emmas 2016-12-08 13:57:23 +00:00
parent f04c1ca4db
commit 975f959adb

View file

@ -23,6 +23,11 @@
#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;