diff options
-rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6,6 +6,7 @@ #include "../reqs/simple-xdg-bdirs/simple-xdg-bdirs.h" #include <stdbool.h> +#include <limits.h> #include <unistd.h> #include <sys/types.h> @@ -26,6 +27,13 @@ int main(int argc, char **argv) char **rdirs, **cur; bool calpath_alloced = false; + if (INT_MAX < 2147483647) { + ERR( + "%s does not work appropriately on systems where `int` < 32 bits", + argv[0] + ); + } + opt_parse(argc, argv); cmd = opt_command(); |