in several C++ debug tests when any of the functions it declares are called.
The best option would be to not use internal headers for tests (unless
explicitly needed). Add guards so that it is safe to use include/string.h from
C++.
* include/string.h: Add __cplusplus check.
+2017-02-15 Wilco Dijkstra <wdijkstr@arm.com>
+
+ * include/string.h: Add __cplusplus check.
+
2017-02-15 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
[BZ #21134]
#ifndef _STRING_H
-#ifndef _ISOMAC
+#if !defined _ISOMAC && !defined __cplusplus
#include <sys/types.h>
extern void *__memccpy (void *__dest, const void *__src,
above are defined as macros in the headers. */
#include <string/string.h>
-#ifndef _ISOMAC
+#if !defined _ISOMAC && !defined __cplusplus
extern __typeof (strcoll_l) __strcoll_l;
extern __typeof (strxfrm_l) __strxfrm_l;
extern __typeof (strcasecmp_l) __strcasecmp_l;