From 19a69bafc0913f13e334b5f56d95c693fab29023 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 29 Apr 2013 19:26:06 +0300 Subject: Support dynamic object loading on MS-Windows. w32/include/dlfcn.h: New file. w32/compat/posixfcn.c: Include dlfcn.h. (dlopen, dlerror, dlsym) [MAKE_LOAD]: New functions, in support of dynamic loading. config.h.W32.template (MAKE_LOAD): Define. load.c (load_object) [HAVE_DOS_PATHS]: Support backslashes and drive letters in file names of dynamic objects. --- w32/include/dlfcn.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 w32/include/dlfcn.h (limited to 'w32/include') diff --git a/w32/include/dlfcn.h b/w32/include/dlfcn.h new file mode 100644 index 0000000..c95fee2 --- /dev/null +++ b/w32/include/dlfcn.h @@ -0,0 +1,13 @@ +/* dlfcn.h replacement for MS-Windows build. */ +#ifndef DLFCN_H +#define DLFCN_H + +#define RTLD_LAZY 1 +#define RTLD_NOW 2 +#define RTLD_GLOBAL 4 + +extern void *dlopen (const char *, int); +extern void *dlsym (void *, const char *); +extern char *dlerror (void); + +#endif /* DLFCN_H */ -- cgit v1.2.3