Exclude non-standard functions in <string.h> if __KeepNamespacePure__ is defined.

This commit is contained in:
Stephen Heumann 2021-02-17 15:36:38 -06:00
parent 895d0585a8
commit 28888cf824

View File

@ -22,13 +22,17 @@ typedef unsigned long size_t;
#define NULL (void *) 0L
#endif
char *c2pstr(char *);
#ifndef __KeepNamespacePure__
char *c2pstr(char *);
#endif
void *memchr(const void *, int, size_t);
int memcmp(const void *, const void *, size_t);
void *memcpy(void *, const void *, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
char *p2cstr(char *);
#ifndef __KeepNamespacePure__
char *p2cstr(char *);
#endif
char *strcat(char *, const char *);
char *strchr(const char *, int);
int strcmp(const char *, const char *);
@ -40,10 +44,14 @@ char *strncat(char *, const char *, size_t);
int strncmp(const char *, const char *, size_t);
char *strncpy(char *, const char *, size_t);
char *strpbrk(const char *, const char *);
int strpos(char *, char);
#ifndef __KeepNamespacePure__
int strpos(char *, char);
#endif
char *strrchr(const char *, int);
char *strrpbrk(char *, char *);
int strrpos(char *, char);
#ifndef __KeepNamespacePure__
char *strrpbrk(char *, char *);
int strrpos(char *, char);
#endif
size_t strspn(const char *, const char *);
char *strstr(const char *, const char *);
char *strtok(char *, const char *);