Commit Message
The internal header include/string.h does not work in C++: it causes link errors
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). As a workaround for now, add extern "C" {} to the C++ debug tests.
C++ debug tests now build and pass.
ChangeLog:
2016-12-21 Wilco Dijkstra <wdijkstr@arm.com>
* debug/tst-chk4.cc: Add extern "C".
* debug/tst-chk5.cc: Likewise.
* debug/tst-chk6.cc: Likewise.
* debug/tst-lfschk4.cc: Likewise.
* debug/tst-lfschk5.cc: Likewise.
* debug/tst-lfschk6.cc: Likewise.
--
@@ -1 +1,3 @@
+extern "C" {
#include "tst-chk1.c"
+}
@@ -1,2 +1,4 @@
+extern "C" {
#define _FORTIFY_SOURCE 1
#include "tst-chk1.c"
+}
@@ -1,2 +1,4 @@
+extern "C" {
#define _FORTIFY_SOURCE 2
#include "tst-chk1.c"
+}
@@ -1,2 +1,4 @@
+extern "C" {
#define _FILE_OFFSET_BITS 64
#include "tst-chk1.c"
+}
@@ -1,2 +1,4 @@
+extern "C" {
#define _FILE_OFFSET_BITS 64
#include "tst-chk2.c"
+}
@@ -1,2 +1,4 @@
+extern "C" {
#define _FILE_OFFSET_BITS 64
#include "tst-chk3.c"
+}