summaryrefslogtreecommitdiff
path: root/src/library/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/loader.c')
-rw-r--r--src/library/loader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/loader.c b/src/library/loader.c
index ca11fe4..caddae2 100644
--- a/src/library/loader.c
+++ b/src/library/loader.c
@@ -135,7 +135,9 @@ char *wolf_library_error_msg( const wolf_library_p library, char *buf, size_t b
WOLF_LIBRARY_FUNCPTR wolf_library_get_func( const wolf_library_p l, const char *name, wolf_error_t *error ) {
WOLF_LIBRARY_FUNCPTR ret;
+#if !defined _WIN32
WOLF_LIBRARY_DLERROR_CONST char *err = NULL;
+#endif /* !defined _WIN32 */
#if defined HAVE_DLFCN
/* clear error state before calling dlsym, so that calling dlsym