On Mon, Feb 03, 2025 at 10:05:14AM +0100, Thomas Weißschuh wrote:
nolibc does not provide this header, instead its definitions are available unconditionally.
Please think about reminding which one you're talking about so that a simple "git log" shows what header you're talking about (limits.h) without requiring to also see the patch itself.
BTW, I think that limits.h is common enough that we could probably provide it as well with nolibc to ease porting (and the current patch is a good example of this). Maybe it could simply start by including stdint.h to provide the various limits we rely on. I remember that in the early days of nolibc-test we had to exclude it as well for nolibc.
What do you think? The less we need to patch programs to insert #ifndef NOLIBC, the better.
Cheers, Willy