From ed9056536e1193d7b60f2b8332c4be78ba152d21 Mon Sep 17 00:00:00 2001 From: wichern <47030768+wichern@users.noreply.github.com> Date: Sun, 16 Jun 2024 21:12:35 +0200 Subject: [PATCH] Update extras/ai-battle/HeadlessGame.cpp Co-authored-by: Alexander Grund --- extras/ai-battle/HeadlessGame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/ai-battle/HeadlessGame.cpp b/extras/ai-battle/HeadlessGame.cpp index 1bdd33a5e..ec1d8f020 100644 --- a/extras/ai-battle/HeadlessGame.cpp +++ b/extras/ai-battle/HeadlessGame.cpp @@ -31,8 +31,9 @@ using bfs::canonical; #ifdef WIN32 HANDLE setupStdOut(); -void printConsole(const char* fmt, ...); -#elif defined(__GNUC__) +#endif + +#ifdef __GNUC__ void printConsole(const char* fmt, ...) __attribute__((format(printf, 1, 2))); #else void printConsole(const char* fmt, ...);