From 80b1b0b2949b1a30eefa009d63a49b050a082a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 5 Jan 2021 18:33:52 +0100 Subject: [PATCH] [CRT] Fix hack for GCC x64, when CRT is linking against RosBE libstdc++ --- sdk/lib/crt/stdio/acrt_iob_func.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/lib/crt/stdio/acrt_iob_func.c b/sdk/lib/crt/stdio/acrt_iob_func.c index 223ea36b5fa..e92b7e813b0 100644 --- a/sdk/lib/crt/stdio/acrt_iob_func.c +++ b/sdk/lib/crt/stdio/acrt_iob_func.c @@ -19,6 +19,10 @@ FILE * CDECL __acrt_iob_func(int index) return &__iob_func()[index]; } +#ifdef WIN64 +const void* __imp___acrt_iob_func = __acrt_iob_func; +#else const void* _imp____acrt_iob_func = __acrt_iob_func; +#endif #endif