From ed466d3c9dc6a5a13817fa7ce411e7ede21c0191 Mon Sep 17 00:00:00 2001 From: FlightlessMango Date: Sun, 6 Sep 2020 11:41:31 +0200 Subject: [PATCH] Fix some more linux vs win compatability --- src/keybinds.h | 2 ++ src/meson.build | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/keybinds.h b/src/keybinds.h index 3943f830..e2743287 100644 --- a/src/keybinds.h +++ b/src/keybinds.h @@ -2,8 +2,10 @@ #ifndef MANGOHUD_KEYBINDS_H #define MANGOHUD_KEYBINDS_H +#ifdef HAVE_X11 #include "shared_x11.h" #include "loaders/loader_x11.h" +#endif #ifndef KeySym typedef unsigned long KeySym; diff --git a/src/meson.build b/src/meson.build index cbecba49..c5d84727 100644 --- a/src/meson.build +++ b/src/meson.build @@ -29,7 +29,10 @@ endforeach vklayer_files = files( 'overlay.cpp', 'font.cpp', - 'keybinds.cpp' + 'keybinds.cpp', + 'font_unispace.c', + 'logging.cpp', + 'config.cpp', ) opengl_files = [] if ['windows', 'mingw'].contains(host_machine.system()) @@ -46,19 +49,16 @@ if is_unixy vklayer_files += files( 'vulkan.cpp', 'overlay_params.cpp', - 'font_unispace.c', 'blacklist.cpp', 'cpu.cpp', 'file_utils.cpp', 'memory.cpp', - 'config.cpp', 'iostats.cpp', 'gpu.cpp', 'notify.cpp', 'elfhacks.cpp', 'real_dlsym.cpp', 'pci_ids.cpp', - 'logging.cpp', ) opengl_files = files(