From 53754c102e6c4d2a297cb915683fdf02cb452307 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Thu, 17 May 2001 13:58:52 +0000 Subject: [PATCH] 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 --- modules/generators/mod_info.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c index 9e22c22c55a..4194f4b411e 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; -- 2.47.2