httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: cvs commit: httpd-2.0 CHANGES
Date Wed, 16 May 2001 21:57:00 GMT
On Wed, 16 May 2001, Bill Stoddard wrote:

> This breaks the Windows compile on this line...
> 
>     {"Post-Read Request", ap_hook_get_post_read_request},
> 
> because the ap_hook_* functions are all declared as standard call but the
> declaration of hook_get_t presumes the calling convention is non standard.
> At least I believe this is why the compile fails :-)

i think this will fix it, but its pretty ugly.  maybe we just need another
macro for this sort of thing?

--- modules/generators/mod_info.c       2001/05/15 04:25:15     1.36
+++ modules/generators/mod_info.c       2001/05/16 21:55:18
@@ -257,7 +257,11 @@
     int nOrder;
 } hook_struct_t;
 
-typedef apr_array_header_t * (*hook_get_t)(void);
+typedef apr_array_header_t * (
+#ifdef WIN32
+    _stdcall_
+#endif
+    *hook_get_t)(void);
 
 typedef struct {
     const char *name;



Mime
View raw message