From 30504fa2ca426c3585affda6502ac1113dd408e3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 28 Mar 2011 01:33:29 +0000 Subject: Fix Windows build. git-svn-id: http://svn.drobilla.net/lad/trunk/suil@3128 a436a847-0d15-0410-975c-d299462d15a1 --- src/instance.c | 2 -- src/suil_internal.h | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/instance.c b/src/instance.c index c0c2018..9ad952b 100644 --- a/src/instance.c +++ b/src/instance.c @@ -31,8 +31,6 @@ #include #include -#include - #include "suil-config.h" #include "suil_internal.h" diff --git a/src/suil_internal.h b/src/suil_internal.h index ac532ab..0ddfb72 100644 --- a/src/suil_internal.h +++ b/src/suil_internal.h @@ -29,7 +29,15 @@ #include #include +#ifdef __WIN32__ +#include +#define dlopen(path, flags) LoadLibrary(path) +#define dlclose(lib) FreeLibrary(lib) +#define dlsym GetProcAddress +static inline char* dlerror(void) { return "Unknown error"; } +#else #include +#endif #include "suil/suil.h" -- cgit v1.2.1