1Fix compile on sytems using libc++ instead of libstdc++
2
3libc++ does not really implement __gnu_cxx namespace and it
4compiles fine without this namespace, therefore detect libc++
5and if it is used them exclude this namespace
6
7See https://github.com/stressapptest/stressapptest/issues/47
8
9Fixes
10
11./sattypes.h:33:17: error: expected namespace name
12using namespace __gnu_cxx; //NOLINT
13
14Upstream-Status: Pending
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16
17--- stressapptest-1.0.9.orig/src/sattypes.h
18+++ stressapptest-1.0.9/src/sattypes.h
19@@ -30,7 +30,9 @@
20 #include "stressapptest_config_android.h"  // NOLINT
21 #else
22 #include "stressapptest_config.h"  // NOLINT
23+#ifndef _LIBCPP_VERSION
24 using namespace __gnu_cxx;  //NOLINT
25+#endif  // _LIBCPP_VERSION
26 #endif  // __ANDROID__
27 using namespace std;
28
29