From 28888cf82407a5e5d93159c30d7f0dce6d44101e Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Wed, 17 Feb 2021 15:36:38 -0600 Subject: [PATCH] Exclude non-standard functions in if __KeepNamespacePure__ is defined. --- ORCACDefs/string.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ORCACDefs/string.h b/ORCACDefs/string.h index ec77a95..35307f3 100644 --- a/ORCACDefs/string.h +++ b/ORCACDefs/string.h @@ -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 *);