authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-06 19:26:31-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-06 19:26:31-04:00
log9ed00b3829dae0fca3db6c0e501ae006e9e8aad8
tree15e79c6405b2672754ba8b3288e2a8a5f7d6283d
parent64d0960244a219526fc100b17f4ecd26223df496
signaturelock-open Commit is signed but in an unrecognized format.

provide ___mb_cur_max_func for i386-windows-gnu


2 files changed, 19 insertions(+), 1 deletions(-)

lib/libc/mingw/misc/___mb_cur_max_func.c created+18
......@@ -0,0 +1,18 @@
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7#include <_mingw.h>
8
9extern int* __MINGW_IMP_SYMBOL(__mb_cur_max);
10
11int __cdecl ___mb_cur_max_func(void);
12int __cdecl ___mb_cur_max_func(void)
13{
14 return *__MINGW_IMP_SYMBOL(__mb_cur_max);
15}
16
17typedef int __cdecl (*_f___mb_cur_max_func)(void);
18_f___mb_cur_max_func __MINGW_IMP_SYMBOL(___mb_cur_max_func) = ___mb_cur_max_func;
src/link.cpp+1-1
......@@ -72,7 +72,7 @@ static const char *msvcrt_common_src[] = {
7272
7373static const char *msvcrt_i386_src[] = {
7474 "misc" OS_SEP "lc_locale_func.c",
75
75 "misc" OS_SEP "___mb_cur_max_func.c",
7676};
7777
7878static const char *msvcrt_other_src[] = {