Correct cdtest g++ version test

Fixes declaration conflict with built-in strncpy.

	* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
This commit is contained in:
Alan Modra 2016-12-03 20:58:55 +10:30
parent b8ac28419b
commit f522190fa7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2016-12-03 Alan Modra <amodra@gmail.com>
* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
2016-12-03 Alan Modra <amodra@gmail.com> 2016-12-03 Alan Modra <amodra@gmail.com>
* ldexp.c (try_copy_symbol_type): Remove unnecessary check. * ldexp.c (try_copy_symbol_type): Remove unnecessary check.

View File

@ -5,7 +5,7 @@
// We don't use header files, since we only want to see, whether the // We don't use header files, since we only want to see, whether the
// compiler is installed properly. // compiler is installed properly.
// //
#if (__GNUG__ == 2) #if __GNUG__ >= 2
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
#else #else
typedef unsigned int size_t; typedef unsigned int size_t;