From c0972613018d7dca9342f3ebf30e0fa6e6ec1d2e Mon Sep 17 00:00:00 2001 From: casey Date: Sun, 10 Jul 2016 14:21:50 -0700 Subject: [PATCH] Combined a couple WIN32 ifndefs in Main.cpp --- src/musikbox/Main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/musikbox/Main.cpp b/src/musikbox/Main.cpp index 217bd140b..0dd27b32a 100644 --- a/src/musikbox/Main.cpp +++ b/src/musikbox/Main.cpp @@ -203,6 +203,9 @@ int main(int argc, char* argv[]) #else freopen("/dev/null", "w", stderr); #endif + + std::signal(SIGWINCH, resizeHandler); + std::signal(SIGHUP, hangupHandler); #endif #ifdef __PDCURSES__ @@ -210,11 +213,6 @@ int main(int argc, char* argv[]) PDC_set_function_key(FUNCTION_KEY_SHUT_DOWN, 4); #endif -#ifndef WIN32 - std::signal(SIGWINCH, resizeHandler); - std::signal(SIGHUP, hangupHandler); -#endif - musik::debug::init(); PluginFactory::Instance(); /* initialize */