summaryrefslogtreecommitdiffstats
path: root/base/word_iterator.h
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 19:24:28 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-05 19:24:28 +0000
commita43a39f4892951c51c716da90db042559d3bd5ef (patch)
tree084e285a7c0dfb156f306d4162f31023c7b3804a /base/word_iterator.h
parent13f29d976aa29c24a5f912f3d0e2484f397dca42 (diff)
downloadchromium_src-a43a39f4892951c51c716da90db042559d3bd5ef.zip
chromium_src-a43a39f4892951c51c716da90db042559d3bd5ef.tar.gz
chromium_src-a43a39f4892951c51c716da90db042559d3bd5ef.tar.bz2
Fix an issue where U_WCHAR_IS_UTF16 would not be defined systematically. This would result in WordIterator definition not being consistent and random crashes would occur.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/word_iterator.h')
-rw-r--r--base/word_iterator.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/base/word_iterator.h b/base/word_iterator.h
index 53369ff..fc722ef 100644
--- a/base/word_iterator.h
+++ b/base/word_iterator.h
@@ -31,9 +31,7 @@
#define BASE_WORD_ITERATOR_H__
#include "base/basictypes.h"
-#ifndef U_WCHAR_IS_UTF16
-#include "unicode/ustring.h"
-#endif
+#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