From 852e51ec5fb77eb034796e5558e7f24f49076c45 Mon Sep 17 00:00:00 2001 From: Ron Nazarov Date: Mon, 25 Nov 2024 16:12:15 +0000 Subject: [PATCH] Fix build errors Add %option yywrap to config.l to fix linker errors complaining about a missing yywrap. Add #define _XOPEN_SOURCE 700 to ee.c to fix -Wimplicit-function-declaration warnings (which GCC 14 makes errors by default) about curses widechar functions. --- config.l | 2 ++ ee.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/config.l b/config.l index 6eff8ef..a10ee58 100644 --- a/config.l +++ b/config.l @@ -1,5 +1,7 @@ /* Lexical analyzer for dgamelaunch's configuration file. */ +%option noyywrap + %{ #include diff --git a/ee.c b/ee.c index 08210fe..2541ba8 100644 --- a/ee.c +++ b/ee.c @@ -65,6 +65,8 @@ wchar_t *ee_long_notice[] = { wchar_t *version = L"@(#) ee, version 1.4.1 $Revision: 1.10 $"; +#define _XOPEN_SOURCE 700 + #include #include #include -- 2.47.3