aboutsummaryrefslogtreecommitdiffstats
path: root/src/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.c')
-rw-r--r--src/scanner.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 084f196..a94be5d 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -35,7 +35,6 @@
#include <string.h>
#include <errno.h>
#include <ctype.h>
-#include <expat.h>
#include <getopt.h>
#include <limits.h>
#include <unistd.h>
@@ -48,6 +47,10 @@ extern char DTD_DATA_begin;
extern int DTD_DATA_len;
#endif
+/* Expat must be included after libxml as both want to declare XMLCALL; see
+ * the Git commit that 'git blame' for this comment points to for more. */
+#include <expat.h>
+
#include "wayland-util.h"
#define PROGRAM_NAME "wayland-scanner"