Patch for source package libdebian-installer 0.99+deb8u1.
==
Askar Safin
http://vk.com/safinaskar
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/exec.h new/include/debian-installer/exec.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/exec.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/exec.h 2015-08-04 20:54:55.335590329 +0000
@@ -20,6 +20,11 @@
#ifndef DEBIAN_INSTALLER__EXEC_H
#define DEBIAN_INSTALLER__EXEC_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/types.h>
#include <sys/types.h>
@@ -200,4 +205,9 @@
}
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/hash.h new/include/debian-installer/hash.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/hash.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/hash.h 2015-08-04 20:54:55.339590329 +0000
@@ -21,6 +21,11 @@
#ifndef DEBIAN_INSTALLER__HASH_H
#define DEBIAN_INSTALLER__HASH_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/types.h>
/**
@@ -139,4 +144,9 @@
di_ksize_t di_hash_table_size (di_hash_table *hash_table);
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/list.h new/include/debian-installer/list.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/list.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/list.h 2015-08-04 20:54:55.339590329 +0000
@@ -20,6 +20,11 @@
#ifndef DEBIAN_INSTALLER__LIST_H
#define DEBIAN_INSTALLER__LIST_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/mem_chunk.h>
typedef struct di_list di_list;
@@ -116,4 +121,9 @@
void di_list_prepend_chunk (di_list *list, void *data, di_mem_chunk *mem_chunk) __attribute__ ((nonnull(1,3)));
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/log.h new/include/debian-installer/log.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/log.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/log.h 2015-08-04 20:54:55.343590329 +0000
@@ -20,6 +20,11 @@
#ifndef DEBIAN_INSTALLER__LOG_H
#define DEBIAN_INSTALLER__LOG_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <stdarg.h>
/**
@@ -104,4 +109,9 @@
di_log_handler_syslog;
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/mem.h new/include/debian-installer/mem.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/mem.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/mem.h 2015-08-04 20:54:55.351590330 +0000
@@ -21,6 +21,11 @@
#ifndef DEBIAN_INSTALLER__MEM_H
#define DEBIAN_INSTALLER__MEM_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/types.h>
#include <stdio.h>
@@ -87,4 +92,9 @@
((struct_type *) di_realloc ((mem), sizeof (struct_type) * (n_structs)))
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/mem_chunk.h new/include/debian-installer/mem_chunk.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/mem_chunk.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/mem_chunk.h 2015-08-04 20:54:55.355590330 +0000
@@ -21,6 +21,11 @@
#ifndef DEBIAN_INSTALLER__MEM_CHUNK_H
#define DEBIAN_INSTALLER__MEM_CHUNK_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/types.h>
typedef struct di_mem_chunk di_mem_chunk;
@@ -37,4 +42,9 @@
size_t di_mem_chunk_size (di_mem_chunk *mem_chunk);
/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff -Naur libdebian-installer-0.99+deb8u1/include/debian-installer/package.h new/include/debian-installer/package.h
--- libdebian-installer-0.99+deb8u1/include/debian-installer/package.h 2014-11-05 01:19:08.000000000 +0000
+++ new/include/debian-installer/package.h 2015-08-04 20:54:55.359590330 +0000
@@ -20,23 +20,16 @@
#ifndef DEBIAN_INSTALLER__PACKAGE_H
#define DEBIAN_INSTALLER__PACKAGE_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <debian-installer/mem.h>
#include <debian-installer/parser.h>
#include <debian-installer/slist.h>
#include <debian-installer/string.h>