Clean up localeconv(3).
The OpenBSD doesn't support C99, and the extent to which we support
locales is trivial, so just do it ourselves.
Change-Id: If0a06e627ecc593f7b8ea3e9389365782e49b00e
diff --git a/libc/include/locale.h b/libc/include/locale.h
index 4efc564..aa6b474 100644
--- a/libc/include/locale.h
+++ b/libc/include/locale.h
@@ -49,9 +49,6 @@
LC_IDENTIFICATION = 12
};
-extern char* setlocale(int, const char*);
-
-#if defined(__LP64__)
struct lconv {
char* decimal_point;
char* thousands_sep;
@@ -71,7 +68,6 @@
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
- /* ISO-C99 */
char int_p_cs_precedes;
char int_p_sep_by_space;
char int_n_cs_precedes;
@@ -79,12 +75,9 @@
char int_p_sign_posn;
char int_n_sign_posn;
};
-#else
-// Keep old declaration for ILP32 for compatibility
-struct lconv { };
-#endif
struct lconv* localeconv(void);
+extern char* setlocale(int, const char*);
__END_DECLS