diff options
author | 2017-01-26 11:03:02 +0100 | |
---|---|---|
committer | 2017-01-26 11:03:19 +0100 | |
commit | 716361fd6a96b702575bcabd2fc5a7b78e2f6e33 (patch) | |
tree | 683d5ac0413173e7cae9e12a82ca05688af82a1d /src/lib/netlist/plib/pstring.cpp | |
parent | c4dbd267303f45ddb2d00bb5211a4352f3220499 (diff) |
Hopefully fix compile on some unknown compiler. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstring.cpp')
-rw-r--r-- | src/lib/netlist/plib/pstring.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/pstring.cpp b/src/lib/netlist/plib/pstring.cpp index 3fc8ffa6dba..baeace1edb9 100644 --- a/src/lib/netlist/plib/pstring.cpp +++ b/src/lib/netlist/plib/pstring.cpp @@ -8,6 +8,7 @@ #include <cstring> #include <algorithm> #include <stack> +#include <cstdlib> #include "pstring.h" #include "palloc.h" @@ -238,7 +239,7 @@ double pstring_t<F>::as_double(bool *error) const if (error != nullptr) *error = false; - ret = strtod(c_str(), &e); + ret = std::strtod(c_str(), &e); if (*e != 0) if (error != nullptr) *error = true; @@ -254,9 +255,9 @@ long pstring_t<F>::as_long(bool *error) const if (error != nullptr) *error = false; if (startsWith("0x")) - ret = strtol(substr(2).c_str(), &e, 16); + ret = std::strtol(substr(2).c_str(), &e, 16); else - ret = strtol(c_str(), &e, 10); + ret = std::strtol(c_str(), &e, 10); if (*e != 0) if (error != nullptr) *error = true; |