summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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