unifdef: fix build with GCC 15

Using GCC compiler on the host breaks the build due to 'constexpr' being
a reserved keyword in C22.
Build expecting the sources to be in GNU17 standard fixes that.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2025-07-09 03:39:53 +01:00
committed by Tianling Shen
parent 362b8cda74
commit ab6ebc5c01

View File

@@ -17,6 +17,9 @@ HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
HOST_CFLAGS += -std=gnu17
TARGET_CFLAGS += -std=gnu17
define Package/unifdef
SECTION:=devel
CATEGORY:=Development