Skip to content

Commit cfea243

Browse files
committed
string: declare (but do not define) strerrorname_np and strerrordesc_np
Provide declarations for these functions; maybe we'll provide an implementation someday. Signed-off-by: Keith Packard <[email protected]>
1 parent 0618fac commit cfea243

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

newlib/libc/include/string.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ int __xpg_strerror_r (int, char *, size_t);
149149
# define strerror_r __xpg_strerror_r
150150
# endif
151151
#endif
152+
#if __GNU_VISIBLE
153+
const char *strerrorname_np(int errnum);
154+
const char *strerrordesc_np(int errnum);
155+
#endif
152156
#if __BSD_VISIBLE
153157
size_t strlcat (char *, const char *, size_t);
154158
#endif

0 commit comments

Comments
 (0)