Tue, 01 Sep 2026 17:47:07 +0200
try different include order to hopefully avoid problems with curses wanting to define bool
| src/input.c | file | annotate | diff | comparison | revisions | |
| src/main.c | file | annotate | diff | comparison | revisions |
--- a/src/input.c Tue Sep 01 17:39:13 2026 +0200 +++ b/src/input.c Tue Sep 01 17:47:07 2026 +0200 @@ -28,9 +28,8 @@ */ #include "input.h" +#include <curses.h> #include <ctype.h> -#include <stdbool.h> /* necessary to avoid errors with outdated curses.h */ -#include <curses.h> int prompt_yesno(char *msg) { printw("%s (y/n)? ", msg);
--- a/src/main.c Tue Sep 01 17:39:13 2026 +0200 +++ b/src/main.c Tue Sep 01 17:47:07 2026 +0200 @@ -29,11 +29,7 @@ #define PROGRAM_VERSION "1.0 alpha" -#include "chess/rules.h" -#include "chess/pgn.h" -#include "input.h" -#include "network.h" -#include "colors.h" +#include <curses.h> #include <string.h> #include <time.h> #include <locale.h> @@ -42,7 +38,12 @@ #include <errno.h> #include <unistd.h> #include <getopt.h> -#include <curses.h> + +#include "chess/rules.h" +#include "chess/pgn.h" +#include "input.h" +#include "network.h" +#include "colors.h" typedef struct { /**