diff --git a/src/86box.c b/src/86box.c index 2b53f1d35..7c5570a5c 100644 --- a/src/86box.c +++ b/src/86box.c @@ -404,7 +404,9 @@ pc_init(int argc, char *argv[]) time_t now; int c; int ng = 0, lvmp = 0; +#ifdef _WIN32 uint32_t *uid, *shwnd; +#endif uint32_t lang_init = 0; /* Grab the executable's full path. */ diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index ca3cf1a2e..09676ee34 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -625,6 +625,7 @@ void MainWindow::on_actionSettings_triggered() { plat_pause(currentPause); } +#if defined(__unix__) && !defined(__HAIKU__) std::array x11_to_xt_base { 0, @@ -952,7 +953,9 @@ std::array x11_to_xt_vnc 0x14B, 0x14D, }; +#endif +#ifdef Q_OS_MACOS std::array darwin_to_xt { 0x1E, @@ -1084,7 +1087,9 @@ std::array darwin_to_xt 0x148, 0, }; +#endif +#if defined(__unix__) && !defined(__HAIKU__) static std::unordered_map evdev_to_xt = { {96, 0x11C}, @@ -1104,6 +1109,7 @@ static std::unordered_map evdev_to_xt = {110, 0x152}, {111, 0x153} }; +#endif #ifdef __HAIKU__ static std::unordered_map be_to_xt = @@ -1216,7 +1222,9 @@ static std::unordered_map be_to_xt = }; #endif +#if defined(__unix__) && !defined(__HAIKU__) static std::array& selected_keycode = x11_to_xt_base; +#endif uint16_t x11_keycode_to_keysym(uint32_t keycode) {