Re: uint_least32_t is in stdint.h not in inttypes.h

2020-12-03 Thread Hans Åberg
> On 16 Nov 2020, at 10:53, Torbjörn Granlund wrote: > > Vincent Lefevre writes: > > So, including if present should be sufficient, and > this is what the above code does. > > That said, for C99 implementations, the #if tests would be useless, > so that the above code is also designed

Re: uint_least32_t is in stdint.h not in inttypes.h

2020-11-16 Thread Torbjörn Granlund
Vincent Lefevre writes: So, including if present should be sufficient, and this is what the above code does. That said, for C99 implementations, the #if tests would be useless, so that the above code is also designed for non-C99 implementations, which may have and with a behavior

Re: uint_least32_t is in stdint.h not in inttypes.h

2020-11-15 Thread Felix von Leitner
> But ISO C99 says: > 7.8 Format conversion of integer types > The header includes the header [...] > So, including if present should be sufficient, and > this is what the above code does. Oh NICE that means I got a bugfix for my code out of this, too. Thanks! :-) Godspeed, Vincent.

Re: uint_least32_t is in stdint.h not in inttypes.h

2020-11-15 Thread Vincent Lefevre
On 2020-11-15 22:21:18 +0100, Felix von Leitner wrote: > I was trying to compile gmp with my libc, dietlibc, and got an error > that uint_least32_t is not defined. > > Well, it is defined, and as far as I can tell in the right header file, > too: stdint.h. > > However, gmp-impl.h reads as

uint_least32_t is in stdint.h not in inttypes.h

2020-11-15 Thread Felix von Leitner
Dear gmp team, I was trying to compile gmp with my libc, dietlibc, and got an error that uint_least32_t is not defined. Well, it is defined, and as far as I can tell in the right header file, too: stdint.h. However, gmp-impl.h reads as follows: 155 #if HAVE_INTTYPES_H /* for