]> granicus.if.org Git - apache/commitdiff
Get the Request Phase Participation change compiling on Windows.
authorBill Stoddard <stoddard@apache.org>
Thu, 17 May 2001 13:58:52 +0000 (13:58 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 17 May 2001 13:58:52 +0000 (13:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89136 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_info.c

index 9e22c22c55a90f1e8e3f258ecb349e33d3b9cb79..4194f4b411e24eac33cac1995d94ce569fe8ebd5 100644 (file)
@@ -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;