This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

include limits.h on arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi (is this a bug?)

hello,

I use arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi on linux host.

I need `PATH_MAX` symbol that usually I get including (directpy or indirectly) limits.h. It the include sys/syslimits.h that actually defines PATH_MAX.

until version 10.3 (which I was using previously), including limits.h would load the file lib/gcc/arm-none-eabi/10.3.1/include-fixed/limits.h which in turn includes lib/gcc/arm-none-eabi/10.3.1/include-fixed/syslimits.h which finally (via #include_next) includes arm-none-eabi/include/limits.h (which allows PATH_MAX to be declared).
In the latest 11.3 release, however, the file lib/gcc/arm-none-eabi/11.3.1/include-fixed/limits.h does not include any other files, so the chain of inclusions is not triggered. And I have no way to directly include the file arm-none-eabi/include/limits.h.
Trying to include syslimits.h (that makes lib/gcc/arm-none-eabi/11.3.1/include-fixed/syslimits.h to be included) instead I get an error:



The only way I have is to include sys/syslimits.h. But is this really the way to do it?


best regards

Max

0