mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 655475 - Remove WinCE code from I18N; r=smontagu
This commit is contained in:
parent
785a1e559b
commit
74ba4e695f
@ -102,7 +102,5 @@ EXTRA_DSO_LDOPTS += \
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
||||
ifndef WINCE
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,usp10)
|
||||
endif
|
||||
endif
|
||||
|
@ -129,11 +129,9 @@ NS_IMETHODIMP nsCollationWin::CompareString(PRInt32 strength,
|
||||
nsresult res;
|
||||
DWORD dwMapFlags = 0;
|
||||
|
||||
#ifndef WINCE // NORM_IGNORECASE is not supported on WINCE
|
||||
if (strength == kCollationCaseInSensitive)
|
||||
dwMapFlags |= NORM_IGNORECASE;
|
||||
|
||||
#endif
|
||||
retval = ::CompareStringW(mLCID,
|
||||
dwMapFlags,
|
||||
(LPCWSTR) PromiseFlatString(string1).get(),
|
||||
|
@ -43,9 +43,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef WINCE
|
||||
#include <usp10.h>
|
||||
#endif
|
||||
|
||||
#include "nsUTF8Utils.h"
|
||||
#include "nsString.h"
|
||||
@ -57,9 +55,6 @@ NS_GetComplexLineBreaks(const PRUnichar* aText, PRUint32 aLength,
|
||||
{
|
||||
NS_ASSERTION(aText, "aText shouldn't be null");
|
||||
|
||||
#ifdef WINCE
|
||||
memset(aBreakBefore, PR_FALSE, aLength);
|
||||
#else
|
||||
int outItems = 0;
|
||||
HRESULT result;
|
||||
nsAutoTArray<SCRIPT_ITEM, 64> items;
|
||||
@ -94,5 +89,4 @@ NS_GetComplexLineBreaks(const PRUnichar* aText, PRUint32 aLength,
|
||||
aBreakBefore[j+startOffset] = sla[j].fSoftBreak;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user