From: Mohamad Al-Jaf mohamadaljaf@gmail.com
--- dlls/msvcp140_codecvt_ids/Makefile.in | 3 +++ dlls/msvcp140_codecvt_ids/main.c | 26 +++++++++++++++++++ .../msvcp140_codecvt_ids.spec | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 dlls/msvcp140_codecvt_ids/main.c
diff --git a/dlls/msvcp140_codecvt_ids/Makefile.in b/dlls/msvcp140_codecvt_ids/Makefile.in index c1dad91cd68..14e820b01fe 100644 --- a/dlls/msvcp140_codecvt_ids/Makefile.in +++ b/dlls/msvcp140_codecvt_ids/Makefile.in @@ -1 +1,4 @@ MODULE = msvcp140_codecvt_ids.dll + +C_SRCS = \ + main.c diff --git a/dlls/msvcp140_codecvt_ids/main.c b/dlls/msvcp140_codecvt_ids/main.c new file mode 100644 index 00000000000..8ba17a454c2 --- /dev/null +++ b/dlls/msvcp140_codecvt_ids/main.c @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2023 Mohamad Al-Jaf + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +typedef struct { + size_t id; +} locale_id; + +/* ?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A */ +locale_id codecvt_char16_id = {0}; diff --git a/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec b/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec index acb6aa5e9b1..55451fcaca3 100644 --- a/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec +++ b/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec @@ -1,4 +1,4 @@ -@ stub ?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A +@ extern ?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A codecvt_char16_id @ stub ?id@?$codecvt@_S_QU_Mbstatet@@@std@@2V0locale@2@A @ stub ?id@?$codecvt@_UDU_Mbstatet@@@std@@2V0locale@2@A @ stub ?id@?$codecvt@_U_QU_Mbstatet@@@std@@2V0locale@2@A