aboutsummaryrefslogtreecommitdiff
path: root/dlfcn.h
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn.h')
-rw-r--r--dlfcn.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/dlfcn.h b/dlfcn.h
index 413c0ab..06c3529 100644
--- a/dlfcn.h
+++ b/dlfcn.h
@@ -24,6 +24,12 @@
24extern "C" { 24extern "C" {
25#endif 25#endif
26 26
27#if defined(DLFCN_WIN32_EXPORTS)
28# define DLFCN_EXPORT __declspec(dllexport)
29#elif defined (_MSC_VER) // FIXME: MinGW support
30# define DLFCN_EXPORT __declspec(dllimport)
31#endif
32
27/* POSIX says these are implementation-defined. 33/* POSIX says these are implementation-defined.
28 * To simplify use with Windows API, we treat them the same way. 34 * To simplify use with Windows API, we treat them the same way.
29 */ 35 */
@@ -41,10 +47,10 @@ extern "C" {
41#define RTLD_DEFAULT 0 47#define RTLD_DEFAULT 0
42#define RTLD_NEXT 0 48#define RTLD_NEXT 0
43 49
44void *dlopen ( const char *file, int mode ); 50DLFCN_EXPORT void *dlopen ( const char *file, int mode );
45int dlclose( void *handle ); 51DLFCN_EXPORT int dlclose(void *handle);
46void *dlsym ( void *handle, const char *name ); 52DLFCN_EXPORT void *dlsym(void *handle, const char *name);
47char *dlerror( void ); 53DLFCN_EXPORT char *dlerror(void);
48 54
49#ifdef __cplusplus 55#ifdef __cplusplus
50} 56}