From: Ron Nazarov Date: Mon, 25 Nov 2024 16:12:15 +0000 (+0000) Subject: Fix build errors X-Git-Tag: v1.6.1-roc-dev~15 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=852e51ec5fb77eb034796e5558e7f24f49076c45;p=dgamelaunch 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. --- 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