summaryrefslogtreecommitdiffstats
path: root/libopkg/sprintf_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/sprintf_alloc.h')
-rw-r--r--libopkg/sprintf_alloc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopkg/sprintf_alloc.h b/libopkg/sprintf_alloc.h
index bcf42a4..fc00403 100644
--- a/libopkg/sprintf_alloc.h
+++ b/libopkg/sprintf_alloc.h
@@ -18,6 +18,14 @@
#ifndef SPRINTF_ALLOC_H
#define SPRINTF_ALLOC_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void sprintf_alloc(char **str, const char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
+
#endif