From 7ac4bbb2de9ad3137fb746b44074377297bc07ba Mon Sep 17 00:00:00 2001 From: Mohamad Al-Jaf Date: Thu, 27 Jul 2023 19:23:30 -0400 Subject: [PATCH] msvcp140_codecvt_ids: Add DLL. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55344 --- configure | 2 ++ configure.ac | 1 + dlls/msvcp140_codecvt_ids/Makefile.in | 4 +++ dlls/msvcp140_codecvt_ids/main.c | 32 +++++++++++++++++++ .../msvcp140_codecvt_ids.spec | 4 +++ 5 files changed, 43 insertions(+) create mode 100644 dlls/msvcp140_codecvt_ids/Makefile.in create mode 100644 dlls/msvcp140_codecvt_ids/main.c create mode 100644 dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec diff --git a/configure b/configure index 9c15f952298..df70e31a897 100755 --- a/configure +++ b/configure @@ -1270,6 +1270,7 @@ enable_msvcp140 enable_msvcp140_1 enable_msvcp140_2 enable_msvcp140_atomic_wait +enable_msvcp140_codecvt_ids enable_msvcp60 enable_msvcp70 enable_msvcp71 @@ -21575,6 +21576,7 @@ wine_fn_config_makefile dlls/msvcp140_1/tests enable_tests wine_fn_config_makefile dlls/msvcp140_2 enable_msvcp140_2 wine_fn_config_makefile dlls/msvcp140_atomic_wait enable_msvcp140_atomic_wait wine_fn_config_makefile dlls/msvcp140_atomic_wait/tests enable_tests +wine_fn_config_makefile dlls/msvcp140_codecvt_ids enable_msvcp140_codecvt_ids wine_fn_config_makefile dlls/msvcp60 enable_msvcp60 wine_fn_config_makefile dlls/msvcp60/tests enable_tests wine_fn_config_makefile dlls/msvcp70 enable_msvcp70 diff --git a/configure.ac b/configure.ac index dab2bb07302..cf26113ca06 100644 --- a/configure.ac +++ b/configure.ac @@ -2837,6 +2837,7 @@ WINE_CONFIG_MAKEFILE(dlls/msvcp140_1/tests) WINE_CONFIG_MAKEFILE(dlls/msvcp140_2) WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait) WINE_CONFIG_MAKEFILE(dlls/msvcp140_atomic_wait/tests) +WINE_CONFIG_MAKEFILE(dlls/msvcp140_codecvt_ids) WINE_CONFIG_MAKEFILE(dlls/msvcp60) WINE_CONFIG_MAKEFILE(dlls/msvcp60/tests) WINE_CONFIG_MAKEFILE(dlls/msvcp70) diff --git a/dlls/msvcp140_codecvt_ids/Makefile.in b/dlls/msvcp140_codecvt_ids/Makefile.in new file mode 100644 index 00000000000..14e820b01fe --- /dev/null +++ b/dlls/msvcp140_codecvt_ids/Makefile.in @@ -0,0 +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..d71263a3e5d --- /dev/null +++ b/dlls/msvcp140_codecvt_ids/main.c @@ -0,0 +1,32 @@ +/* + * 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 + +typedef struct { + size_t id; +} locale_id; + +/* ?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A */ +locale_id codecvt_char16_id = {0}; +/* ?id@?$codecvt@_S_QU_Mbstatet@@@std@@2V0locale@2@A */ +locale_id codecvt_char16_char8_id = {0}; +/* ?id@?$codecvt@_UDU_Mbstatet@@@std@@2V0locale@2@A */ +locale_id codecvt_char32_id = {0}; +/* ?id@?$codecvt@_U_QU_Mbstatet@@@std@@2V0locale@2@A */ +locale_id codecvt_char32_char8_id = {0}; diff --git a/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec b/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec new file mode 100644 index 00000000000..4fd4b65e32a --- /dev/null +++ b/dlls/msvcp140_codecvt_ids/msvcp140_codecvt_ids.spec @@ -0,0 +1,4 @@ +@ extern ?id@?$codecvt@_SDU_Mbstatet@@@std@@2V0locale@2@A codecvt_char16_id +@ extern ?id@?$codecvt@_S_QU_Mbstatet@@@std@@2V0locale@2@A codecvt_char16_char8_id +@ extern ?id@?$codecvt@_UDU_Mbstatet@@@std@@2V0locale@2@A codecvt_char32_id +@ extern ?id@?$codecvt@_U_QU_Mbstatet@@@std@@2V0locale@2@A codecvt_char32_char8_id