mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-05 00:21:29 +00:00
core: convert strtod.c to C++
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b6cabdf023
commit
4ee5d08a46
3 changed files with 4 additions and 4 deletions
|
@ -93,7 +93,7 @@ SOURCES += subsurface-mobile-main.cpp \
|
|||
core/selection.cpp \
|
||||
core/sha1.c \
|
||||
core/string-format.cpp \
|
||||
core/strtod.c \
|
||||
core/strtod.cpp \
|
||||
core/tag.cpp \
|
||||
core/taxonomy.c \
|
||||
core/time.cpp \
|
||||
|
|
|
@ -169,7 +169,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
|||
statistics.h
|
||||
string-format.h
|
||||
string-format.cpp
|
||||
strtod.c
|
||||
strtod.cpp
|
||||
subsurface-float.h
|
||||
subsurface-string.cpp
|
||||
subsurface-string.h
|
||||
|
|
|
@ -109,12 +109,12 @@ no_conversion:
|
|||
return 0.0;
|
||||
}
|
||||
|
||||
double permissive_strtod(const char *str, const char **ptr)
|
||||
extern "C" double permissive_strtod(const char *str, const char **ptr)
|
||||
{
|
||||
return strtod_flags(str, ptr, false);
|
||||
}
|
||||
|
||||
double ascii_strtod(const char *str, const char **ptr)
|
||||
extern "C" double ascii_strtod(const char *str, const char **ptr)
|
||||
{
|
||||
return strtod_flags(str, ptr, true);
|
||||
}
|
Loading…
Reference in a new issue