diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-05-20 16:40:40 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-05-20 16:40:40 +0200 |
commit | 34a193a606ce61f7d84e4417b198a5a05b9c8e38 (patch) | |
tree | 3e32e65f996edb7cfe08d05fbb00ee9af0b2fe5b /src | |
parent | 82c2b858633c9992ce7560a0b21f37329904a300 (diff) | |
download | wolfbones-34a193a606ce61f7d84e4417b198a5a05b9c8e38.tar.gz wolfbones-34a193a606ce61f7d84e4417b198a5a05b9c8e38.tar.bz2 |
more portable way of returning the function pointer in the dynloader
Diffstat (limited to 'src')
-rw-r--r-- | src/library/loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/loader.c b/src/library/loader.c index b8a3d1b..aa501e3 100644 --- a/src/library/loader.c +++ b/src/library/loader.c @@ -130,14 +130,14 @@ char *wolf_library_errmsg( const wolf_error_t error, const wolf_library_p librar return buf; } -void *wolf_library_get( const wolf_library_p l, const char *name, wolf_error_t *error ) { - void *ret; +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 HAVE_DLFCN ret = dlsym( l->handle, name ); #else #if defined _WIN32 - + ret = GetProcAddress( l->handle, name ); #else #error Not using DLFCN as shared loader. Port first! #endif |