cstring: undefine macros defined in new strings.h.

This commit is contained in:
Gregory Nutt
2017-02-22 06:59:39 -06:00
parent 5e09de3703
commit 22a8c2178d
2 changed files with 18 additions and 1 deletions
+13
View File
@@ -44,6 +44,19 @@
#include <string.h>
#include <strings.h>
//***************************************************************************
// Pre-processor Definitions
//***************************************************************************
// Remove macros defined in strings.h. The index() definition, in
// particular, can cause naming collision problems.
#undef bcmp
#undef bcopy
#undef bzero
#undef index
#undef rindex
//***************************************************************************
// Namespace
//***************************************************************************