diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 16:22:17 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 11:24:59 +0200 |
commit | 212b4bedb565b3ccc807917b94ed5b67023603db (patch) | |
tree | 91ff6ec848196b238a2624a23c11236521cb2b02 | |
parent | d7ab0b3eab59f6068d697399da50734e57c5ca83 (diff) | |
download | lilv-212b4bedb565b3ccc807917b94ed5b67023603db.tar.gz lilv-212b4bedb565b3ccc807917b94ed5b67023603db.tar.bz2 lilv-212b4bedb565b3ccc807917b94ed5b67023603db.zip |
Clean up includes
-rw-r--r-- | bindings/test/bindings_test_plugin.c | 2 | ||||
-rw-r--r-- | src/instance.c | 1 | ||||
-rw-r--r-- | src/lib.c | 5 | ||||
-rw-r--r-- | src/plugin.c | 1 | ||||
-rw-r--r-- | src/state.c | 4 | ||||
-rw-r--r-- | src/world.c | 4 | ||||
-rw-r--r-- | test/lilv_test_utils.c | 5 |
7 files changed, 16 insertions, 6 deletions
diff --git a/bindings/test/bindings_test_plugin.c b/bindings/test/bindings_test_plugin.c index bee7f85..1945c0d 100644 --- a/bindings/test/bindings_test_plugin.c +++ b/bindings/test/bindings_test_plugin.c @@ -25,7 +25,7 @@ #include "lv2/core/lv2.h" /** Include standard C headers */ -#include <math.h> +#include <stdint.h> #include <stdlib.h> /** 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> @@ -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); diff --git a/test/lilv_test_utils.c b/test/lilv_test_utils.c index 5d692ea..c8a80bb 100644 --- a/test/lilv_test_utils.c +++ b/test/lilv_test_utils.c @@ -21,20 +21,21 @@ #include "../src/lilv_internal.h" #include "lilv/lilv.h" +#include "serd/serd.h" #ifdef _WIN32 # include <direct.h> -# include <io.h> # define mkdir(path, flags) _mkdir(path) #else # include <unistd.h> #endif #include <errno.h> +#include <stdbool.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/stat.h> LilvTestEnv* lilv_test_env_new(void) |