aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2020-01-07 14:50:31 -0700
committerkatherine <ageha@airen-no-jikken.icu>2020-01-07 14:50:31 -0700
commit3cfd9c38e563dec8202e9af84a8e5c9e7f503db1 (patch)
tree123665b4cac8931447a19b3493523813cc2931a1 /src
parent6aa5872d216ac38bba66fa04eea586c316b5969e (diff)
downloadevery-3cfd9c38e563dec8202e9af84a8e5c9e7f503db1.tar.gz
check for < 32bits
Diffstat (limited to 'src')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 2d6c7c8..21a1f49 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();