mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
build fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
007ecb4ab2
commit
cf81f86c67
2 changed files with 7 additions and 1 deletions
|
@ -225,6 +225,13 @@ struct z3_replayer::imp {
|
|||
return curr() == '-' || curr() == '.' || ('0' <= curr() && curr() <= '9') || curr() == 'e' || curr() == 'E';
|
||||
}
|
||||
|
||||
#if (!defined(strtof))
|
||||
float strtof(const char * str, char ** end_ptr) {
|
||||
// Note: This may introduce a double-rounding problem.
|
||||
return (float)strtod(str, end_ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
void read_float() {
|
||||
m_string.reset();
|
||||
while (is_double_char()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue