zeek/auxil/vcpkg/ports/liblzf/0001-add-extern-c.patch
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

24 lines
491 B
Diff

--- 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