httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Anderson <>
Subject Re: [PATCH] C++ and pool (again) in 1.3b6
Date Fri, 01 May 1998 21:41:23 GMT
Brian Behlendorf wrote:
> Sounds like folks like this idea - Michael,
> prepare a patch against the current code base
> and I think we could incorporate it.

Here is a patch to make the header files C++
friendly. If its not what the group wants, let
me know and I'll try something else. I think this
represents the minimal change to the header files.

The patch is trivial:

1. these conditional compile macros:

#ifdef _cplusplus
extern "C" {
#ifdef __cplusplus

are placed at the top and bottom, respectively,
of all header files.

2. the "pool *pool;" member of these five structures:


is changed to "ap_pool *pool".

3. the statement:

typedef struct pool ap_pool;

is added to alloc.h

The patch was generated using version
apache_19980430190027.tar.gz. After
re-applying the patch to that original
code, I compiled everything, including
my C++ module without problems, so it
should work for you.

Good Luck,

Mike Anderson
+52 473 23730 voice/fax
Guanajuato, GTO, Mexico

View raw message