summaryrefslogtreecommitdiffstats
path: root/base/word_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/word_iterator.h')
-rw-r--r--base/word_iterator.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/base/word_iterator.h b/base/word_iterator.h
index 8329f64..097290f 100644
--- a/base/word_iterator.h
+++ b/base/word_iterator.h
@@ -31,9 +31,11 @@
#define BASE_WORD_ITERATOR_H__
#include <string>
+#include <vector>
+
+#include "unicode/uchar.h"
#include "base/basictypes.h"
-#include "unicode/umachine.h" // Needed for U_WCHAR_IS_UTF16.
// The WordIterator class iterates through the words and word breaks
// in a string. (In the string " foo bar! ", the word breaks are at the
@@ -94,7 +96,7 @@ class WordIterator {
private:
// ICU iterator.
void* iter_;
-#ifndef U_WCHAR_IS_UTF16
+#if !defined(WCHAR_T_IS_UTF16)
std::vector<UChar> chars_;
#endif