Clean up reentrancy cruft.

The DNS copy of reentrant.h was unused, so remove it.

The strtod implementation can use the upstream-netbsd reentrant.h and
get a little closer to what was then upstream. (It's since been replaced
by gdtoa, and we'll have to follow at some point, but for now this doesn't
make anything any worse.)

ANDROID_CHANGES is (now) only used in the DNS code, so push the -D
down.

The <locale.h> change prevents an LP32 hack from leaking into LP64.

Change-Id: Idf30b98a59d7ca8f7c6cd6d07020b512057911ef
This commit is contained in:
Elliott Hughes
2014-03-13 16:17:43 -07:00
parent d16100c1fb
commit 205c7887ad
5 changed files with 12 additions and 290 deletions

View File

@@ -49,11 +49,13 @@ enum {
LC_IDENTIFICATION = 12
};
extern char *setlocale(int category, const char *locale);
extern char* setlocale(int, const char*);
/* Make libstdc++-v3 happy. */
#if !defined(__LP64__)
// TODO: LP32 had these bogus declarations but LP64 should have a real struct lconv and localeconv(3).
struct lconv { };
struct lconv *localeconv(void);
struct lconv* localeconv(void);
#endif
__END_DECLS