From b1080093bca40696fae18292fbd40129412cb381 Mon Sep 17 00:00:00 2001 From: "avi@google.com" Date: Mon, 11 Aug 2008 21:26:52 +0000 Subject: Fixes word_iterator to actually compile. Next time, never just paste code in that _should_ fix things without actually compiling :( git-svn-id: svn://svn.chromium.org/chrome/trunk/src@672 0039d316-1c4b-4281-b951-d872f2087c98 --- base/word_iterator.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'base/word_iterator.h') 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 +#include + +#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 chars_; #endif -- cgit v1.1