} lldiv_t;
#endif
+#if !defined(HAVE_GETENV) || \
+ !defined(HAVE_USELOCALE)
+# include <stddef.h> /* NULL */
+#endif
+
#ifndef HAVE_REWIND
# include <stdio.h> /* FILE */
#endif
# include <stdarg.h> /* va_list */
#endif
+#ifndef HAVE_GETPID
+# include <sys/types.h> /* pid_t */
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
char *getcwd (char *buf, size_t size);
#endif
+#ifndef HAVE_GETPID
+pid_t getpid (void);
+#endif
+
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif
#ifndef HAVE_USELOCALE
+#define LC_NUMERIC_MASK 0
typedef void *locale_t;
-# define newlocale( a, b, c ) ((locale_t)0)
-# define uselocale( a ) ((locale_t)0)
-# define freelocale( a ) (void)0
+static inline locale_t uselocale(locale_t loc)
+{
+ (void)loc;
+ return NULL;
+}
+static inline void freelocale(locale_t loc)
+{
+ (void)loc;
+}
+static inline locale_t newlocale(int mask, const char * locale, locale_t base)
+{
+ (void)mask; (void)locale; (void)base;
+ return NULL;
+}
#endif
#ifdef WIN32