talloc: make header C++ safe
authorSimo Sorce <idra@samba.org>
Wed, 20 Oct 2010 17:09:57 +0000 (13:09 -0400)
committerSimo Sorce <idra@samba.org>
Wed, 20 Oct 2010 18:15:09 +0000 (18:15 +0000)
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Wed Oct 20 18:15:09 UTC 2010 on sn-devel-104

lib/talloc/talloc.h

index 8b9ade202e52abbc25a9f8ee6e61d352cd98d133..bc5b0fae2a53949d312957fcf46d3078818ab964 100644 (file)
 #include <stdio.h>
 #include <stdarg.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * @defgroup talloc The talloc API
  *
@@ -1701,4 +1705,8 @@ void talloc_set_log_stderr(void);
 #define TALLOC_MAX_DEPTH 10000
 #endif
 
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
 #endif