ReactOS
0.4.17-dev-573-g8315b8c
imp_alias_hacks.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS SDK
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: dllimport-slot aliases for llvm-mingw runtime references
5
* COPYRIGHT: Copyright 2026 Ahmed Arif <arif.ing@outlook.com>
6
*/
7
8
/*
9
* llvm-mingw's runtime objects reference these CRT functions through dllimport slots. Resolving the slots
10
* from the ucrtbase import library pulls import thunks that collide with the static definitions in
11
* libmingwex/msvcrtex (lld: "<sym> was replaced"), so bind the slots to the static definitions instead.
12
*/
13
14
#include <
imp_alias.h
>
15
16
IMP_ALIAS_CDECL
(
btowc
);
17
IMP_ALIAS_CDECL
(
mbrtowc
);
18
IMP_ALIAS_CDECL
(
wcrtomb
);
19
IMP_ALIAS_CDECL
(
wctob
);
btowc
wchar_t __cdecl btowc(int)
Definition:
mbcs.c:3211
wctob
int __cdecl wctob(wint_t)
Definition:
wcs.c:2180
imp_alias.h
IMP_ALIAS_CDECL
#define IMP_ALIAS_CDECL(name)
Definition:
imp_alias.h:28
mbrtowc
#define mbrtowc(wp, cp, len, sp)
Definition:
wchar.h:158
wcrtomb
#define wcrtomb(cp, wc, sp)
Definition:
wchar.h:163
sdk
lib
llvm-compat
imp_alias_hacks.c
Generated on Sat Aug 1 2026 06:20:40 for ReactOS by
1.9.6