From 7d091cd5495b534fd7980737eb341e5190661273 Mon Sep 17 00:00:00 2001 From: Qrox Date: Wed, 15 Apr 2020 23:20:16 +0800 Subject: [PATCH] Move function declarations out of function block --- src/game.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game.cpp b/src/game.cpp index bdf1b004a1622..7e80da4ec70dc 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -428,6 +428,12 @@ void game::load_data_from_dir( const std::string &path, const std::string &src, #define MINIMAP_HEIGHT 7 #define MINIMAP_WIDTH 7 +#if !(defined(_WIN32) || defined(TILES)) + // in ncurses_def.cpp + void check_encoding(); + void ensure_term_size(); +#endif + void game::init_ui( const bool resized ) { // clear the screen @@ -435,9 +441,6 @@ void game::init_ui( const bool resized ) if( first_init ) { #if !(defined(_WIN32) || defined(TILES)) - // in ncurses_def.cpp - void check_encoding(); - check_encoding(); #endif @@ -461,9 +464,6 @@ void game::init_ui( const bool resized ) get_options().save(); } #else - // in ncurses_def.cpp - void ensure_term_size(); - ( void ) resized; ensure_term_size();