From fcb05dbcc4bc105dbd2b020909072deac0314e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Fri, 15 Nov 2024 03:40:55 +0800 Subject: [PATCH] fix --- cpp/winsharedutils/levenshtein.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/winsharedutils/levenshtein.cpp b/cpp/winsharedutils/levenshtein.cpp index 12ac2e4c..4cfc02b9 100644 --- a/cpp/winsharedutils/levenshtein.cpp +++ b/cpp/winsharedutils/levenshtein.cpp @@ -1,5 +1,4 @@ -#include size_t lev_u_edit_distance(size_t len1, const wchar_t *string1, size_t len2, const wchar_t *string2, int xcost) @@ -157,6 +156,9 @@ size_t lev_u_edit_distance(size_t len1, const wchar_t *string1, free(row); return i; } +#ifndef WINXP +#include +#endif DECLARE_API size_t levenshtein_distance(size_t len1, const wchar_t *string1, size_t len2, const wchar_t *string2) {