I'm trying to compile some 3-rd party project ([FreeFT][1]). I've installed all required dependencies but when i issue make game
this error error: ‘INT_MAX’ was not declared in this scope
occurs for any compiler i set (COMPILER=g++, COMPILER=clang). I've noticed that in the problematic file where the is being used the author just removed #include <limits.h>
line in the latest few commits without any reasonable and clear explanations! Of course when i manually add the #include <limits.h>
line to the file compiler is happy, but i think it's not a good and desired behavior to make code changes in the 3-rd party project that SUPPOSED to compile and run without problems WITHOUT making any changes in the code itself!.Thx. for help and suggestions
P.SMy specs:gcc (Debian 10.2.1-6) 10.2.1Debian clang version 11.0.1-2
Is there a possibility that the author assumes that the constant is being "hard-coded" or "build in" in the compiler itself?[1]: https://github.com/nadult/FreeFT