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, ...);