extern "C" {
#endif
+#include <features.h>
+
#undef NULL
#ifdef __cplusplus
#define NULL 0
struct lconv *localeconv(void);
-#if 1
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
#define __NEED_locale_t