summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/my_global.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index ce32ac07372..5f7043c54cb 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1365,8 +1365,10 @@ do { doubleget_union _tmp; \
#define dlsym(lib, name) (void*)GetProcAddress((HMODULE)lib, name)
#define dlopen(libname, unused) LoadLibraryEx(libname, NULL, 0)
#define dlclose(lib) FreeLibrary((HMODULE)lib)
+#ifndef HAVE_DLOPEN
#define HAVE_DLOPEN
#endif
+#endif
#ifdef HAVE_DLOPEN
#if defined(HAVE_DLFCN_H)
@@ -1375,6 +1377,9 @@ do { doubleget_union _tmp; \
#endif
#ifndef HAVE_DLERROR
+#ifdef _WIN32
+#define dlerror() ""
+#else
#define dlerror() "No support for dynamic loading (static build?)"
#endif