Skip to content

Commit dc78096

Browse files
committed
libc/string: Expose strtok_r and strnlen for Zephyr
Signed-off-by: Keith Packard <[email protected]>
1 parent d90453e commit dc78096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

newlib/libc/include/string.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int strcoll_l (const char *, const char *, locale_t);
8888
char *strerror_l (int, locale_t);
8989
size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, locale_t);
9090
#endif
91-
#if __MISC_VISIBLE || __POSIX_VISIBLE
91+
#if __MISC_VISIBLE || __POSIX_VISIBLE || __ZEPHYR_VISIBLE
9292
char *strtok_r (char *__restrict, const char *__restrict, char **__restrict);
9393
#endif
9494
#if __BSD_VISIBLE
@@ -146,7 +146,7 @@ char * _strerror_r (int, int, int *);
146146
size_t strlcat (char *, const char *, size_t);
147147
size_t strlcpy (char *, const char *, size_t);
148148
#endif
149-
#if __POSIX_VISIBLE >= 200809
149+
#if __POSIX_VISIBLE >= 200809 || __ZEPHYR_VISIBLE
150150
size_t strnlen (const char *, size_t);
151151
#endif
152152
#if __BSD_VISIBLE

0 commit comments

Comments
 (0)