svn commit: samba r18030 -
in branches/SAMBA_3_0/source/tdb/common: .
Jeremy Allison
jra at samba.org
Mon Sep 4 17:52:05 GMT 2006
On Mon, Sep 04, 2006 at 03:07:31PM +0200, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> tridge at samba.org schrieb:
> > Metze,
> >
> > > yes, the goal should be to let c++ applications make use of our libraries.
> >
> > oh, that's a diifferent goal to what I've heard discussed
> > previously. I thought Volker was just focussed on the useful warnings?
> >
> > Is it really practical to make our libraries usable in real C++
> > programs, without adding a lot of C++ specific code?
>
> I think adding
>
> #ifdef __cplusplus
> extern "C" {
> #endif
>
> ...
>
>
> #ifdef __cplusplus
> }
> #endif
>
> in the header files would be all we need.
> That's what I see in a lot of files under /usr/include/
> e.g. all apr*.h files
Yep - and as C++ is a superset of C (except for the occasional
sytax hiccup we've noticed) then that's all you need to do
to make things work.
Jeremy.
More information about the samba-technical
mailing list