diff options
Diffstat (limited to 'core.lv2')
-rw-r--r-- | core.lv2/lv2config.c | 7 | ||||
-rw-r--r-- | core.lv2/wscript | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/core.lv2/lv2config.c b/core.lv2/lv2config.c index 51e0df5..327d655 100644 --- a/core.lv2/lv2config.c +++ b/core.lv2/lv2config.c @@ -35,6 +35,13 @@ #include <sys/types.h> #include <unistd.h> +#ifdef __WIN32__ +#define _WIN32_WINNT 0x0600 +#include <windows.h> +#define symlink(src, dst) (!CreateSymbolicLink((src), (dst), 0)) +#define mkdir(path, mode) mkdir(path) +#endif + #include "serd-0.1.0.h" #include "lv2-config.h" diff --git a/core.lv2/wscript b/core.lv2/wscript index e98377b..9934cef 100644 --- a/core.lv2/wscript +++ b/core.lv2/wscript @@ -30,7 +30,7 @@ def configure(conf): lv2core_dir_sep = '/' if sys.platform == 'win32': lv2core_path_sep = ';' - lv2core_dir_sep = '\\' + lv2core_dir_sep = '\\\\' autowaf.define(conf, 'LV2CORE_PATH_SEP', lv2core_path_sep) autowaf.define(conf, 'LV2CORE_DIR_SEP', lv2core_dir_sep) @@ -48,7 +48,7 @@ def configure(conf): '~/.lv2', '/boot/common/add-ons/lv2']) elif Options.platform == 'win32': - Options.options.default_lv2_path = 'C:\\Program Files\\LV2' + Options.options.default_lv2_path = 'C:\\\\Program Files\\\\LV2' else: Options.options.default_lv2_path = lv2core_path_sep.join([ '~/.lv2', @@ -92,7 +92,7 @@ def build(bld): source = 'lv2config.c serd-0.1.0.c', target = 'lv2config', install_path = '${BINDIR}', - cflags = '-std=c99') + cflags = ['-std=c99', '-U__STRICT_ANSI__']) # Man page bld.install_files('${MANDIR}/man1', 'lv2config.1') |