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
wchar_t __cdecl btowc(int)
Definition: mbcs.c:3211
int __cdecl wctob(wint_t)
Definition: wcs.c:2180
#define IMP_ALIAS_CDECL(name)
Definition: imp_alias.h:28
#define mbrtowc(wp, cp, len, sp)
Definition: wchar.h:158
#define wcrtomb(cp, wc, sp)
Definition: wchar.h:163