diff options
author | David Robillard <d@drobilla.net> | 2011-03-28 03:13:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-03-28 03:13:05 +0000 |
commit | 7b067fc094b0495359557e6442636a38567e995c (patch) | |
tree | fb78b8bf472aa0196dd7f9e2ed7ac74d2e976df2 /src/slv2_internal.h | |
parent | db78a2f56fc8bd3b188ea54e0461cb3108c2dedb (diff) | |
download | lilv-7b067fc094b0495359557e6442636a38567e995c.tar.gz lilv-7b067fc094b0495359557e6442636a38567e995c.tar.bz2 lilv-7b067fc094b0495359557e6442636a38567e995c.zip |
Fix Windows build
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3129 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r-- | src/slv2_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h index d24d570..e2a6807 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -28,7 +28,15 @@ extern "C" { #include <stdint.h> #include <stdlib.h> +#ifdef __WIN32__ +#include <windows.h> +#define dlopen(path, flags) LoadLibrary(path) +#define dlclose(lib) FreeLibrary(lib) +#define dlsym GetProcAddress +static inline char* dlerror(void) { return "Unknown error"; } +#else #include <dlfcn.h> +#endif #include <glib.h> @@ -379,6 +387,7 @@ SLV2Values slv2_values_from_stream_objects(SLV2Plugin p, /* ********* Utilities ********* */ char* slv2_strjoin(const char* first, ...); +char* slv2_strdup(const char* str); char* slv2_get_lang(); uint8_t* slv2_qname_expand(SLV2Plugin p, const char* qname); |