Use __LONG_LONG_MAX__ instead of LONG_LONG_MAX in test

* testsuite/decimal/conversion-to-integral.cc: Use predefined macro
	instead of non-standard glibc one.

From-SVN: r253894
This commit is contained in:
Jonathan Wakely 2017-10-19 14:56:55 +01:00 committed by Jonathan Wakely
parent 426776f1b5
commit af23b26ab0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-10-19 Jonathan Wakely <jwakely@redhat.com>
* testsuite/decimal/conversion-to-integral.cc: Use predefined macro
instead of non-standard glibc one.
2017-10-16 François Dumont <fdumont@gcc.gnu.org>
PR libstdc++/82558

View File

@ -64,7 +64,7 @@ void
conversion_to_integral_128 (void)
{
#undef MAXVAL
#define MAXVAL LONG_LONG_MAX
#define MAXVAL __LONG_LONG_MAX__
decimal128 a, b (1), c (-1), d (MAXVAL), e (-MAXVAL);
long long ll;