Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: devel

make spamc (more libspamc.c and utils.c ) able to compile with c++

 

 

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded


nico.prenzel at pn-systeme

Jul 3, 2009, 6:20 AM

Post #1 of 2 (263 views)
Permalink
make spamc (more libspamc.c and utils.c ) able to compile with c++

Hello SpamAssassin-Devs,

currently our spamc client compiles fine using c. But others (and of course me) would need to build the spamc client (especially the library files libspamc.c and utils.c) with a c++ compiler. Currently, this happend to me as I've tried to integrate the spamc libraries into my Lotus Domino application. This integration needs to build/link all source files with c++. With pure c the integration won't work.

So, my question would be. If I'll supply a patch to make the spamc libraries compile fine with c++, will there be any chance to be applied to trunk?

If already done the adjustment. So the code would look like the following:

#ifdef __cplusplus
extern "C"
{
#endif


...more code (casting of malloc/memchr, typename won't work)

#ifdef __cplusplus
}

#endif





Regards



NicoP.


jm at jmason

Jul 3, 2009, 6:34 AM

Post #2 of 2 (243 views)
Permalink
Re: make spamc (more libspamc.c and utils.c ) able to compile with c++ [In reply to]

hi Nico -- as long as it's appropriately #ifdef'd, I don't think
there'd be a problem applying that.

On Fri, Jul 3, 2009 at 15:18, Nico Prenzel<nico.prenzel [at] pn-systeme> wrote:
> Hello SpamAssassin-Devs,
>
> currently our spamc client compiles fine using c. But others (and of course
> me) would need to build the spamc client (especially the library files
> libspamc.c and utils.c) with a c++ compiler. Currently, this happend to me
> as I've tried to integrate the spamc libraries into my Lotus Domino
> application. This integration needs to build/link all source files with c++.
> With pure c the integration won't work.
>
> So, my question would be. If I'll supply a patch to make the spamc
> libraries compile fine with c++, will there be any chance to be applied to
> trunk?
>
> If already done the adjustment. So the code would look like the following:
>
> #ifdef __cplusplus
> extern "C"
> {
> #endif
>
> ...more code (casting of malloc/memchr, typename won't work)
>
> #ifdef __cplusplus
> }
>
> #endif
>
>
>
>
>
> Regards
>
>
>
> NicoP.

SpamAssassin devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.