diff options
author | David Robillard <d@drobilla.net> | 2018-07-10 21:50:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-07-10 21:50:48 +0200 |
commit | 06ccf8c3eb72ef6aa1d7eca54434870cd35ef451 (patch) | |
tree | f55a845b64255f204b17d6fd94ebc04cc26f96a1 /test | |
parent | cea8fb3e487e0c2605061e3bf772db0455fba6bb (diff) | |
download | lilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.tar.gz lilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.tar.bz2 lilv-06ccf8c3eb72ef6aa1d7eca54434870cd35ef451.zip |
Fix Windows/MSVC build
Diffstat (limited to 'test')
-rw-r--r-- | test/lilv_test.c | 2 | ||||
-rw-r--r-- | test/test.lv2/test.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c index 5f879f9..0c48588 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -31,9 +31,11 @@ #ifdef _WIN32 # include <direct.h> +# include <io.h> # define mkdir(path, flags) _mkdir(path) # define setenv(n, v, r) SetEnvironmentVariable((n), (v)) # define unsetenv(n) SetEnvironmentVariable((n), NULL) +# define mkstemp(pat) _mktemp(pat) #else # include <dirent.h> # include <unistd.h> diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c index 2850f0e..30677f1 100644 --- a/test/test.lv2/test.c +++ b/test/test.lv2/test.c @@ -27,6 +27,11 @@ #include "lv2/lv2plug.in/ns/ext/urid/urid.h" #include "lv2/lv2plug.in/ns/lv2core/lv2.h" +#ifdef _WIN32 +# include <io.h> +# define mkstemp(pat) _mktemp(pat) +#endif + #define TEST_URI "http://example.org/lilv-test-plugin" #define TMP_TEMPLATE "lilv_testXXXXXX" |