From: Bill Stoddard Date: Thu, 17 May 2001 13:58:52 +0000 (+0000) Subject: Get the Request Phase Participation change compiling on Windows. X-Git-Tag: 2.0.18~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53754c102e6c4d2a297cb915683fdf02cb452307;p=apache Get the Request Phase Participation change compiling on Windows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89136 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index 9e22c22c55..4194f4b411 100644 --- a/modules/generators/mod_info.c +++ b/modules/generators/mod_info.c @@ -257,7 +257,17 @@ typedef struct { /*XXX: should get something from apr_hooks.h instead */ int nOrder; } hook_struct_t; -typedef apr_array_header_t * (*hook_get_t)(void); +/* + * hook_get_t is a pointer to a function that takes void as an argument and + * returns a pointer to an apr_array_header_t. The nasty WIN32 ifdef + * is required to account for the fact that the ap_hook* calls all use + * STDCALL calling convention. + */ +typedef apr_array_header_t * ( +#ifdef WIN32 +__stdcall +#endif +* hook_get_t)(void); typedef struct { const char *name;