CMake: adds option FF_ENABLE_WCWIDTH

This commit is contained in:
Carter Li
2026-05-28 14:47:09 +08:00
parent dadcccdf26
commit 896fe60461
2 changed files with 14 additions and 1 deletions
+7
View File
@@ -2,4 +2,11 @@
#include <stdint.h>
#if FF_ENABLE_WCWIDTH
int mk_wcwidth(uint32_t wc);
#else
static inline int mk_wcwidth(uint32_t wc) {
(void) wc;
return 1;
}
#endif