projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f04c1ca
)
For building with MSVC, std::strtof() didn't get introduced until VS2013
author
John Emmas
<johne53@tiscali.co.uk>
Thu, 8 Dec 2016 13:57:23 +0000
(13:57 +0000)
committer
John 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
patch
|
blob
|
history
diff --git
a/libs/pbd/configuration_variable.cc
b/libs/pbd/configuration_variable.cc
index cde1d15bf186bd348ef9fbb965197bc916ceea33..0e2d6c739a9392a1ec5f8969fa779749c4f2d2cf 100644
(file)
--- a/
libs/pbd/configuration_variable.cc
+++ b/
libs/pbd/configuration_variable.cc
@@
-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;