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/libunibreak/fix_export.patch | |
Diffstat (limited to 'vcpkg/ports/libunibreak/fix_export.patch')
| -rw-r--r-- | vcpkg/ports/libunibreak/fix_export.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/libunibreak/fix_export.patch b/vcpkg/ports/libunibreak/fix_export.patch new file mode 100644 index 0000000..aafa6b4 --- /dev/null +++ b/vcpkg/ports/libunibreak/fix_export.patch @@ -0,0 +1,23 @@ +diff --git a/src/eastasianwidthdef.h b/src/eastasianwidthdef.h
+index 67a41aa..c081a02 100644
+--- a/src/eastasianwidthdef.h
++++ b/src/eastasianwidthdef.h
+@@ -26,6 +26,9 @@
+
+ #include "unibreakdef.h"
+
++#ifdef __cplusplus
++extern "C" {
++#endif
+ /**
+ * East Asian Width (ea) class. This is defined in Unicode Standard
+ * Annex 11.
+@@ -52,5 +55,8 @@ struct EastAsianWidthProperties
+ };
+
+ enum EastAsianWidthClass ub_get_char_eaw_class(utf32_t ch);
++#ifdef __cplusplus
++}
++#endif
+
+ #endif /* EASTASIANWIDTHDEF_H */
|