diff --git a/compat/atof.c b/compat/atof.c index c0723d3b30..f6268fe692 100644 --- a/compat/atof.c +++ b/compat/atof.c @@ -24,7 +24,9 @@ #include +#ifndef __ANDROID__ double atof (const char *str) { return strtod (str, NULL); } +#endif diff --git a/compat/strtof.c b/compat/strtof.c index 1300da73ec..db9cb91aec 100644 --- a/compat/strtof.c +++ b/compat/strtof.c @@ -24,7 +24,9 @@ #include +#ifndef __ANDROID__ float strtof (const char *str, char **end) { return strtod (str, end); } +#endif