From 43aca64a34e7134fe15db1e54326318310e641ef Mon Sep 17 00:00:00 2001 From: Moritz Raguschat Date: Sun, 22 Mar 2026 15:55:27 +0700 Subject: [PATCH] fix: add -D_GNU_SOURCE to CFLAGS for strcasestr visibility on Linux --- Makefile.cbm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.cbm b/Makefile.cbm index 37e53eac..2bd843d7 100644 --- a/Makefile.cbm +++ b/Makefile.cbm @@ -45,7 +45,7 @@ GCC_ONLY_FLAGS := -Wno-format-truncation -Wno-unused-result \ -Wno-stringop-truncation -Wno-alloc-size-larger-than endif -CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -Wall -Wextra -Werror \ +CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -Wextra -Werror \ -Wno-unused-parameter -Wno-sign-compare \ $(GCC_ONLY_FLAGS) \ -Isrc -Ivendored -Ivendored/sqlite3 \