summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 19:33:33 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 19:33:33 -0400
commitf1a5e67911f92318dab3f980808874b8369389d6 (patch)
tree02cd3361dd5577c6017f3247cad1bc2b488d6af3
parentadc0e91ddbe70c2127d39c337d9b4a09ea752425 (diff)
fix non-GNU build
-rw-r--r--Makefile2
-rw-r--r--base.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c34498a..0f99dac 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ release: *.[ch] libpcre2-32.a
profile: *.[ch] libpcre2-32.a
$(CC) main.c -o ted $(PROFILE_CFLAGS) $(LIBS)
clean:
- rm -f ted *.o
+ rm -f ted *.o *.a
install: release
@[ -w `dirname $(GLOBAL_DATA_DIR)` ] || { echo "You need permission to write to $(GLOBAL_DATA_DIR). Try running with sudo/as root." && exit 1; }
@[ -w `dirname $(INSTALL_BIN_DIR)` ] || { echo "You need permission to write to $(INSTALL_BIN_DIR). Try running with sudo/as root." && exit 1; }
diff --git a/base.h b/base.h
index 9e39f93..00d6a5b 100644
--- a/base.h
+++ b/base.h
@@ -11,6 +11,8 @@
#if __GNUC__
#define FALLTHROUGH __attribute__((fallthrough));
+#else
+#define FALLTHROUGH
#endif
#if _WIN32