Fix imdkit detection

config.h needs to be included before ifdef check...
This commit is contained in:
lbonn
2025-01-05 14:38:25 +01:00
parent fab79016fb
commit 3550af6d5b
2 changed files with 3 additions and 1 deletions

View File

@@ -29,13 +29,14 @@
/** Log domain for this module */ /** Log domain for this module */
#define G_LOG_DOMAIN "X11Helper" #define G_LOG_DOMAIN "X11Helper"
#include <config.h>
#ifdef XCB_IMDKIT #ifdef XCB_IMDKIT
#include <xcb-imdkit/encoding.h> #include <xcb-imdkit/encoding.h>
#include <xcb/xcb_keysyms.h> #include <xcb/xcb_keysyms.h>
#endif #endif
#include <cairo-xcb.h> #include <cairo-xcb.h>
#include <cairo.h> #include <cairo.h>
#include <config.h>
#include <glib.h> #include <glib.h>
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -29,6 +29,7 @@
#define G_LOG_DOMAIN "View" #define G_LOG_DOMAIN "View"
#include <config.h> #include <config.h>
#include <errno.h> #include <errno.h>
#include <locale.h> #include <locale.h>
#include <signal.h> #include <signal.h>