Commit b71bfdaafbb62f1069fa67cd75bd5c985f45eea7

Ozkan Sezer 2021-12-01T20:50:40

SDL_iconv.c (encodings): mark "WCHAR_T" as ENCODING_UTF16LE for OS/2 too whcar_t is unsigned short in os/2, like windows

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c
index 34246bc..e7a9480 100644
--- a/src/stdlib/SDL_iconv.c
+++ b/src/stdlib/SDL_iconv.c
@@ -146,7 +146,7 @@ static struct
     { "US-ASCII", ENCODING_ASCII },
     { "8859-1", ENCODING_LATIN1 },
     { "ISO-8859-1", ENCODING_LATIN1 },
-#ifdef __WIN32__
+#if defined(__WIN32__)||defined(__OS2__)
     { "WCHAR_T", ENCODING_UTF16LE },
 #else
     { "WCHAR_T", ENCODING_UCS4NATIVE },