util/NumberParser: remove obsolete __ANDROID_API__ check

This commit is contained in:
Max Kellermann 2023-09-11 22:12:04 +02:00
parent 517c234461
commit f68305bf00
1 changed files with 0 additions and 5 deletions

View File

@ -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
} }