From d0d576d61d65f7b42db1cc7331f1c7c9879e90e9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 21 May 2010 15:31:37 +0200 Subject: final cleanup in documentation of library loader --- include/wolf/library/loader.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/wolf/library/loader.h b/include/wolf/library/loader.h index 19979af..437fa1b 100644 --- a/include/wolf/library/loader.h +++ b/include/wolf/library/loader.h @@ -58,6 +58,10 @@ typedef struct wolf_library_t *wolf_library_p; * * Reason: conversion from void * to function pointer is illegal by ISO-99 * (though it works actually on Posix) + * + * for the reasons why naive casting doesn't work with dlsym, see: + * + * http://en.wikipedia.org/wiki/Dynamic_loading */ #if defined _WIN32 #define WOLF_LIBRARY_FUNC_CAST( symbol__, func_t__, func__ ) func__ = (func_t__)symbol__ -- cgit v1.2.3-54-g00ecf