aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2014-11-22 10:11:22 -0800
committerGravatar Hoà V. DINH <dinh.viet.hoa@gmail.com>2014-11-22 10:11:22 -0800
commit9a7e8d1d9a7373b45ba337c1f9bfa92f16341f11 (patch)
tree42f3c07590d0eac672182fd8c3ed7ca77603d35b /src/core
parentfafaf9dc531119fe359b95ea0c790491b7a900ce (diff)
Improved build on win32.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/provider/MCMailProvider.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/provider/MCMailProvider.cpp b/src/core/provider/MCMailProvider.cpp
index fd1b9ffb..1055d4fa 100644
--- a/src/core/provider/MCMailProvider.cpp
+++ b/src/core/provider/MCMailProvider.cpp
@@ -12,6 +12,7 @@
#include "MCJSON.h"
#ifdef _MSC_VER
+#include <unicode/uregex.h>
#include <unicode/utext.h>
#include <unicode/utypes.h>
#include <unicode/localpointer.h>
@@ -196,13 +197,13 @@ bool MailProvider::matchDomain(String * match, String * domain)
uregex_close(r);
return false;
}
- uregex_setText(r, domain->unicodeChararacters(), domain->length(), &code);
+ uregex_setText(r, domain->unicodeCharacters(), domain->length(), &code);
if (code != U_ZERO_ERROR) {
uregex_close(r);
return false;
}
- bool matched = uregex_matches(r, 0, &code)
+ bool matched = uregex_matches(r, 0, &code);
if (code != U_ZERO_ERROR) {
uregex_close(r);
return false;