--- C:\builds\redland-1.0.8_orig\librdf\rdf_log.h Thu Jul 31 11:23:55 2008 +++ C:\builds\redland-1.0.8_good\librdf\rdf_log.h Thu Jul 31 11:23:55 2008 @@ -32,6 +32,11 @@ #include +#ifdef WIN32 +/* for USE_STDCALL_CALLBACKS */ +#include +#endif + /** * librdf_log_level: * @LIBRDF_LOG_NONE: No level @@ -131,7 +136,11 @@ * * Return value: non-zero to indicate log message has been handled */ +#ifdef USE_STDCALL_CALLBACKS +typedef int (_stdcall *librdf_log_level_func)(void *user_data, const char *message, va_list arguments); +#else typedef int (*librdf_log_level_func)(void *user_data, const char *message, va_list arguments); +#endif /** * librdf_log_func: @@ -142,7 +151,11 @@ * * Return value: non-zero to indicate log message has been handled */ +#ifdef USE_STDCALL_CALLBACKS +typedef int (_stdcall *librdf_log_func)(void *user_data, librdf_log_message *message); +#else typedef int (*librdf_log_func)(void *user_data, librdf_log_message *message); +#endif #ifdef LIBRDF_INTERNAL #include