[PATCH] talloc: Add ifdef'd extern "C" to ease use in C++ projects.

simo idra at samba.org
Wed Oct 20 12:43:32 MDT 2010


On Fri, 2010-06-25 at 21:22 -0700, Kenneth Graunke wrote:
> Currently, if one wishes to use talloc in a C++ program, one has to write:
> 
> extern "C" {
> #include <talloc.h>
> }
> 
> This patch takes care of that in talloc.h so C++ programmers can simply write:
> #include <talloc.h>
> 
> This is much nicer, especially since forgetting the extern results in obscure
> linker errors.  C programs should be unaffected by this patch.

Kenneth,
sory for the long dealy, I have now pushed a patch that adds the extern
"C" wrapper to talloc.h

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>



More information about the samba-technical mailing list