summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/talloc/talloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index 8b9ade202e..bc5b0fae2a 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -29,6 +29,10 @@
#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