Including limits.h in gmp-impl.h

2013-12-25 Thread Marc Glisse
Hello, trying to compile gmp with clang, I got this error in the C++ testsuite: In file included from /usr/include/limits.h:152: /usr/include/x86_64-linux-gnu/bits/xopen_lim.h:97:7: error: token is not a valid binary operator in a preprocessor subexpression # if INT_MAX == 2147483647

Re: Including limits.h in gmp-impl.h

2013-12-25 Thread Marc Glisse
Oups, looks like I already asked about that: https://gmplib.org/list-archives/gmp-bugs/2011-November/002443.html and the reply was to try including tests.h before gmp-impl.h. -- Marc Glisse ___ gmp-devel mailing list gmp-devel@gmplib.org

Re: Including limits.h in gmp-impl.h

2013-12-25 Thread Torbjorn Granlund
Vincent Lefevre vinc...@vinc17.net writes: On 2013-12-25 12:13:39 +0100, Marc Glisse wrote: Oups, looks like I already asked about that: https://gmplib.org/list-archives/gmp-bugs/2011-November/002443.html and the reply was to try including tests.h before gmp-impl.h. I'd say

Re: Including limits.h in gmp-impl.h

2013-12-25 Thread Vincent Lefevre
On 2013-12-25 13:28:20 +0100, Torbjorn Granlund wrote: IIRC, limits.h was unreliable for many years, and our workarounds allowed GMP to work on more systems. I've tried to find something about that on Google, but couldn't find anything. Any reference? -- Vincent Lefèvre vinc...@vinc17.net -

Re: Including limits.h in gmp-impl.h

2013-12-25 Thread Torbjorn Granlund
Vincent Lefevre vinc...@vinc17.net writes: I've tried to find something about that on Google, but couldn't find anything. Any reference? Perhaps ChangeLog has some history. Torbjörn ___ gmp-devel mailing list gmp-devel@gmplib.org