summaryrefslogtreecommitdiffstats
path: root/libopkg/pkg_extract.h
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/pkg_extract.h')
-rw-r--r--libopkg/pkg_extract.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopkg/pkg_extract.h b/libopkg/pkg_extract.h
index b83b41b..82ef8b1 100644
--- a/libopkg/pkg_extract.h
+++ b/libopkg/pkg_extract.h
@@ -18,6 +18,10 @@
#ifndef PKG_EXTRACT_H
#define PKG_EXTRACT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "pkg.h"
int pkg_extract_control_file_to_stream(pkg_t *pkg, FILE *stream);
@@ -28,4 +32,8 @@ int pkg_extract_control_files_to_dir_with_prefix(pkg_t *pkg,
int pkg_extract_data_files_to_dir(pkg_t *pkg, const char *dir);
int pkg_extract_data_file_names_to_stream(pkg_t *pkg, FILE *file);
+#ifdef __cplusplus
+}
+#endif
+
#endif