mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
cstring: undefine macros defined in new strings.h.
This commit is contained in:
@@ -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
|
||||
//***************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user