The compiler always defines __LONG_LONG_MAX__, so use that.

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

Tested powerpc64le-linux, committed to trunk.

commit 64dcf27be075febc17f9823e3d8155476f99fffa
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Thu Oct 19 14:36:20 2017 +0100

    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.

diff --git a/libstdc++-v3/testsuite/decimal/conversion-to-integral.cc 
b/libstdc++-v3/testsuite/decimal/conversion-to-integral.cc
index 6fd59a67b70..cc48fa8729d 100644
--- a/libstdc++-v3/testsuite/decimal/conversion-to-integral.cc
+++ b/libstdc++-v3/testsuite/decimal/conversion-to-integral.cc
@@ -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;
 

Reply via email to