From 34a193a606ce61f7d84e4417b198a5a05b9c8e38 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 20 May 2010 16:40:40 +0200 Subject: more portable way of returning the function pointer in the dynloader --- src/library/loader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf