Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/strings.h')
-rw-r--r--newlib/libc/include/strings.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
index b462d07f8..be019581c 100644
--- a/newlib/libc/include/strings.h
+++ b/newlib/libc/include/strings.h
@@ -15,6 +15,10 @@
#include <sys/cdefs.h>
#include <sys/types.h> /* for size_t */
+#if __POSIX_VISIBLE >= 200809
+#include <sys/_locale.h>
+#endif
+
_BEGIN_STD_C
#if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809)
@@ -33,10 +37,10 @@ int _EXFUN(ffs,(int));
int _EXFUN(strcasecmp,(const char *, const char *));
int _EXFUN(strncasecmp,(const char *, const char *, size_t));
-#if __GNU_VISIBLE
-extern int strcasecmp_l (const char *, const char *, locale_t);
-extern int strncasecmp_l (const char *, const char *, size_t, locale_t);
-#endif /* _GNU_VISIBLE */
+#if __POSIX_VISIBLE >= 200809
+int strcasecmp_l (const char *, const char *, locale_t);
+int strncasecmp_l (const char *, const char *, size_t, locale_t);
+#endif /* __POSIX_VISIBLE >= 200809 */
_END_STD_C