aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/liblzf/0001-add-extern-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/liblzf/0001-add-extern-c.patch')
-rw-r--r--vcpkg/ports/liblzf/0001-add-extern-c.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/liblzf/0001-add-extern-c.patch b/vcpkg/ports/liblzf/0001-add-extern-c.patch
new file mode 100644
index 0000000..903705a
--- /dev/null
+++ b/vcpkg/ports/liblzf/0001-add-extern-c.patch
@@ -0,0 +1,23 @@
+--- a/lzf.h
++++ b/lzf.h
+@@ -48,6 +48,10 @@
+
+ #define LZF_VERSION 0x0105 /* 1.5, API version */
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /*
+ * Compress in_len bytes stored at the memory block starting at
+ * in_data and write the result to out_data, up to a maximum length
+@@ -96,5 +100,9 @@ unsigned int
+ lzf_decompress (const void *const in_data, unsigned int in_len,
+ void *out_data, unsigned int out_len);
+
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+