]> skyeroc.xyz Git - dgamelaunch/commitdiff
Fix build errors
authorRon Nazarov <ron@noisytoot.org>
Mon, 25 Nov 2024 16:12:15 +0000 (16:12 +0000)
committerRon Nazarov <ron@noisytoot.org>
Mon, 25 Nov 2024 16:12:15 +0000 (16:12 +0000)
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
ee.c

index 6eff8efd2307a0c7762aa5c13ec1973e9811a8e0..a10ee585e090af32ffe0542e95c3724b9af22b8b 100644 (file)
--- a/config.l
+++ b/config.l
@@ -1,5 +1,7 @@
 /* Lexical analyzer for dgamelaunch's configuration file. */
 
+%option noyywrap
+
 %{
 
 #include <stdio.h>
diff --git a/ee.c b/ee.c
index 08210feb66734f330dd7b3e5f6796f5a32b39196..2541ba805c7b2e11a1b5c646cfef4ed890e2f03f 100644 (file)
--- 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 <locale.h>
 #include <curses.h>
 #include <signal.h>