diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/liblzf/0001-add-extern-c.patch | |
Diffstat (limited to 'vcpkg/ports/liblzf/0001-add-extern-c.patch')
| -rw-r--r-- | vcpkg/ports/liblzf/0001-add-extern-c.patch | 23 |
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 + |