summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dom/watcher.c5
-rw-r--r--src/dom/watcher.h3
-rw-r--r--src/layout.c2
-rw-r--r--src/util/dom-str.c2
-rw-r--r--src/util/dom-str.h2
5 files changed, 8 insertions, 6 deletions
diff --git a/src/dom/watcher.c b/src/dom/watcher.c
index c33702e..cb775c6 100644
--- a/src/dom/watcher.c
+++ b/src/dom/watcher.c
@@ -13,10 +13,13 @@
* gain a LibDOM-specific extension API.
*/
+#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
+#include <stdbool.h>
+
+#include "libnslayout/nslayout.h"
#include "dom/debug.h"
#include "dom/watcher.h"
diff --git a/src/dom/watcher.h b/src/dom/watcher.h
index 2894db6..a6f2568 100644
--- a/src/dom/watcher.h
+++ b/src/dom/watcher.h
@@ -11,8 +11,7 @@
#ifndef nslayout_dom_watcher_h_
#define nslayout_dom_watcher_h_
-#include <libnslayout/nslayout.h>
-
+struct dom_document;
struct nsl_dom_watcher;
/**
diff --git a/src/layout.c b/src/layout.c
index ee3d507..d894f13 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -11,7 +11,7 @@
#include <assert.h>
#include <stdlib.h>
-#include <libnslayout/nslayout.h>
+#include "libnslayout/nslayout.h"
#include "layout.h"
#include "dom/watcher.h"
diff --git a/src/util/dom-str.c b/src/util/dom-str.c
index 73bfe63..3c0865a 100644
--- a/src/util/dom-str.c
+++ b/src/util/dom-str.c
@@ -10,6 +10,8 @@
#include <stdio.h>
+#include "libnslayout/nslayout.h"
+
#include "util/dom-str.h"
#include "util/util.h"
diff --git a/src/util/dom-str.h b/src/util/dom-str.h
index 7c130c3..9ce7bb9 100644
--- a/src/util/dom-str.h
+++ b/src/util/dom-str.h
@@ -11,8 +11,6 @@
#ifndef nslayout_util_dom_str_h_
#define nslayout_util_dom_str_h_
-#include <libnslayout/nslayout.h>
-
extern dom_string *nsl_dom_str_node_inserted;
extern dom_string *nsl_dom_str_node_removed;
extern dom_string *nsl_dom_str_subtree_modified;