summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 16:22:17 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 11:24:59 +0200
commit212b4bedb565b3ccc807917b94ed5b67023603db (patch)
tree91ff6ec848196b238a2624a23c11236521cb2b02 /src
parentd7ab0b3eab59f6068d697399da50734e57c5ca83 (diff)
downloadlilv-212b4bedb565b3ccc807917b94ed5b67023603db.tar.gz
lilv-212b4bedb565b3ccc807917b94ed5b67023603db.tar.bz2
lilv-212b4bedb565b3ccc807917b94ed5b67023603db.zip
Clean up includes
Diffstat (limited to 'src')
-rw-r--r--src/instance.c1
-rw-r--r--src/lib.c5
-rw-r--r--src/plugin.c1
-rw-r--r--src/state.c4
-rw-r--r--src/world.c4
5 files changed, 12 insertions, 3 deletions
diff --git a/src/instance.c b/src/instance.c
index a6d486f..42c13a2 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -18,6 +18,7 @@
#include "lilv/lilv.h"
#include "lv2/core/lv2.h"
+#include "serd/serd.h"
#include <stdbool.h>
#include <stdint.h>
diff --git a/src/lib.c b/src/lib.c
index 06510cb..b2a93bb 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -18,8 +18,13 @@
#include "lilv/lilv.h"
#include "lv2/core/lv2.h"
+#include "serd/serd.h"
#include "zix/tree.h"
+#ifndef _WIN32
+# include <dlfcn.h>
+#endif
+
#include <stdint.h>
#include <stdlib.h>
diff --git a/src/plugin.c b/src/plugin.c
index 0743cd8..9da448b 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -29,7 +29,6 @@
#ifdef LILV_DYN_MANIFEST
# include "lv2/dynmanifest/dynmanifest.h"
-# include <dlfcn.h>
#endif
#include <math.h>
diff --git a/src/state.c b/src/state.c
index 5ca2205..d741e4a 100644
--- a/src/state.c
+++ b/src/state.c
@@ -29,6 +29,10 @@
#include "lv2/state/state.h"
#include "lv2/urid/urid.h"
+#ifndef _WIN32
+#include <unistd.h>
+#endif
+
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
diff --git a/src/world.c b/src/world.c
index 65cffd4..cf859eb 100644
--- a/src/world.c
+++ b/src/world.c
@@ -33,10 +33,10 @@
#include <assert.h>
#include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
static int
lilv_world_drop_graph(LilvWorld* world, const SordNode* graph);