util/NumberParser: remove obsolete __ANDROID_API__ check
This commit is contained in:
parent
517c234461
commit
f68305bf00
|
@ -55,10 +55,5 @@ ParseDouble(const char *p, char **endptr=nullptr) noexcept
|
||||||
static inline float
|
static inline float
|
||||||
ParseFloat(const char *p, char **endptr=nullptr) noexcept
|
ParseFloat(const char *p, char **endptr=nullptr) noexcept
|
||||||
{
|
{
|
||||||
#if defined(__BIONIC__) && __ANDROID_API__ < 21
|
|
||||||
/* strtof() requires API level 21 */
|
|
||||||
return (float)ParseDouble(p, endptr);
|
|
||||||
#else
|
|
||||||
return strtof(p, endptr);
|
return strtof(p, endptr);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue