diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-04-29 19:26:06 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-04-29 19:26:06 +0300 |
commit | 19a69bafc0913f13e334b5f56d95c693fab29023 (patch) | |
tree | b3f1d061b1a72d5f7e74a60831d85362f41fafe1 /w32/include | |
parent | 9a7fe22b197770271a2235062fe52cb1c71a3d9e (diff) | |
download | gunmake-19a69bafc0913f13e334b5f56d95c693fab29023.tar.gz |
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.
Diffstat (limited to 'w32/include')
-rw-r--r-- | w32/include/dlfcn.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 */ |