httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: using libapreq with C++
Date Mon, 15 Apr 2002 07:25:03 GMT
hiroyuki hanai wrote:
> hello,
> 
> I'm writing an apache module with C++, which use
> libapreq to parse data from http clients.
> Then, I now have a linkage problem because
> there's no `extern "C"' wrapper in apache_cookie.h.
> 
> I'm very glad if you include attached patch.

it's already fixed in the cvs version. The next release will include 
this fix.


> ------------------------------------------------------------------------
> 
> --- apache_cookie.h.org	Wed Jan 27 10:33:20 1999
> +++ apache_cookie.h	Sat Apr 13 14:32:38 2002
> @@ -34,11 +34,19 @@
>  #define ApacheCookieAddLen(c,val,len) \
>      ApacheCookieAddn(c, ap_pstrndup(c->r->pool, val, len))
>  
> +#ifdef  __cplusplus
> + extern "C" {
> +#endif 
> +
>  ApacheCookie *ApacheCookie_new(request_rec *r, ...);
>  ApacheCookieJar *ApacheCookie_parse(request_rec *r, const char *data);
>  char *ApacheCookie_as_string(ApacheCookie *c);
>  char *ApacheCookie_attr(ApacheCookie *c, char *key, char *val);
>  char *ApacheCookie_expires(ApacheCookie *c, char *time_str);
>  void ApacheCookie_bake(ApacheCookie *c);
> +
> +#ifdef __cplusplus
> + }
> +#endif
>  
>  #define APC_ERROR APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, c->r



-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Mime
View raw message