diff options
author | Alan Modra <amodra@gmail.com> | 2016-12-03 20:58:55 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-12-03 20:58:55 +1030 |
commit | f522190fa7f04a8d9a1dfc51d0cf69973c08afb5 (patch) | |
tree | 129d3963e59774b15411a73d8a94b6bc3610e00c /ld/testsuite | |
parent | b8ac28419be22fe0cc72f6eaaba1ab029610fc71 (diff) | |
download | gdb-f522190fa7f04a8d9a1dfc51d0cf69973c08afb5.zip gdb-f522190fa7f04a8d9a1dfc51d0cf69973c08afb5.tar.gz gdb-f522190fa7f04a8d9a1dfc51d0cf69973c08afb5.tar.bz2 |
Correct cdtest g++ version test
Fixes declaration conflict with built-in strncpy.
* testsuite/ld-cdtest/cdtest-foo.cc: Test for __GNUG__ >= 2.
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-cdtest/cdtest-foo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |