From f1a5e67911f92318dab3f980808874b8369389d6 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 20 Apr 2021 19:33:33 -0400 Subject: fix non-GNU build --- Makefile | 2 +- base.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3