]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
tsan_thread_wrappers_pthread.h: Only include cstdint for C++11
authorMark Wielaard <mark@klomp.org>
Sat, 28 Jan 2023 20:53:44 +0000 (21:53 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 28 Jan 2023 20:54:03 +0000 (21:54 +0100)
Fixes build on older g++.

drd/tests/tsan_thread_wrappers_pthread.h

index 4cc8062069acb88ac9f36599d0b808df9f47d60a..e022e5dece6bbebdf0457027be5c58634ef6e3d1 100644 (file)
@@ -55,7 +55,9 @@
 #define NO_TLS
 #endif
 
+#if __cplusplus >= 201103L
 #include <cstdint>
+#endif
 #include <string>
 using namespace std;