From 33db42def2ce6fe040b5f77642347e8b3c6420e5 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Sun, 21 Mar 2021 15:57:03 -0400 Subject: Make 'make test' work on gcc 4.8.5 --- lib/string.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/string.c') diff --git a/lib/string.c b/lib/string.c index 37eabe8c..d941cd56 100644 --- a/lib/string.c +++ b/lib/string.c @@ -7,7 +7,13 @@ #ifdef SHIM_UNIT_TEST #define strlen shim_strlen +#ifdef strcmp +#undef strcmp +#endif #define strcmp shim_strcmp +#ifdef strncmp +#undef strncmp +#endif #define strncmp shim_strncmp #define strncasecmp shim_strncasecmp #define strcasecmp shim_strcasecmp @@ -15,11 +21,26 @@ #define strlen shim_strlen #define strnlen shim_strnlen #define strcpy shim_strcpy +#ifdef strncpy +#undef strncpy +#endif #define strncpy shim_strncpy +#ifdef strdup +#undef strdup +#endif #define strdup shim_strdup +#ifdef strndup +#undef strndup +#endif #define strndup shim_strndup +#ifdef stpcpy +#undef stpcpy +#endif #define stpcpy shim_stpcpy #define strchrnul shim_strchrnul +#ifdef strchr +#undef strchr +#endif #define strchr shim_strchr #endif -- cgit v1.2.3