This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Correct cdtest g++ version test
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Sat, 3 Dec 2016 21:20:44 +1030
- Subject: Correct cdtest g++ version test
- Authentication-results: sourceware.org; auth=none
Fixes declaration conflict with built-in strncpy.
* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
diff --git a/ld/testsuite/ld-cdtest/cdtest-foo.cc b/ld/testsuite/ld-cdtest/cdtest-foo.cc
index d8e5cbe..7e6bd75 100644
--- a/ld/testsuite/ld-cdtest/cdtest-foo.cc
+++ b/ld/testsuite/ld-cdtest/cdtest-foo.cc
@@ -5,7 +5,7 @@
// We don't use header files, since we only want to see, whether the
// compiler is installed properly.
//
-#if (__GNUG__ == 2)
+#if __GNUG__ >= 2
typedef __SIZE_TYPE__ size_t;
#else
typedef unsigned int size_t;
--
Alan Modra
Australia Development Lab, IBM