[unicode] remove obsolete bigendian defines

This commit is contained in:
Armin Novak
2023-12-12 11:06:52 +01:00
committed by akallabeth
parent 10e3942993
commit da49127a78
2 changed files with 1 additions and 11 deletions

View File

@@ -347,7 +347,7 @@ static void* clipboard_synthesize_html_format(wClipboard* clipboard, UINT32 form
/* Check the BOM (Byte Order Mark) */
if ((pSrcData.cpb[0] == 0xFE) && (pSrcData.cpb[1] == 0xFF))
ByteSwapUnicode(pSrcData.pv, (int)(SrcSize / 2));
ByteSwapUnicode(pSrcData.pv, (SrcSize / 2));
/* Check if we have WCHAR, convert to UTF-8 */
if ((pSrcData.cpb[0] == 0xFF) && (pSrcData.cpb[1] == 0xFE))

View File

@@ -91,16 +91,6 @@ int TestString(int argc, char* argv[])
if (!test_url_escape())
return -1;
#ifdef __BIG_ENDIAN__
/* Be sure that we always use LE encoded string */
ByteSwapUnicode(testStringW, testStringW_Length);
ByteSwapUnicode(testToken1W, testToken1W_Length);
ByteSwapUnicode(testToken2W, testToken2W_Length);
ByteSwapUnicode(testToken3W, testToken3W_Length);
ByteSwapUnicode(testTokensW, testTokensW_Length);
ByteSwapUnicode(testDelimiter, testDelimiter_Length);
#endif
/* _wcslen */
length = _wcslen(testStringW);