1 /* 2 * PROJECT: ReactOS CRT library 3 * LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later) 4 * PURPOSE: __acrt_iob_func implementation 5 * COPYRIGHT: Victor Perevertkin <victor.perevertkin@reactos.org> 6 */ 7 8 // Evil hack necessary, because we're linking to the RosBE-provided libstdc++ when using GCC. 9 // This can only be solved cleanly by adding a GCC-compatible C++ standard library to our tree. 10 #ifdef __GNUC__ 11 12 #include <precomp.h> 13 14 /********************************************************************* 15 * __acrt_iob_func(MSVCRT.@) 16 */ 17 FILE * CDECL __acrt_iob_func(int index) 18 { 19 return &__iob_func()[index]; 20 } 21 22 #ifdef WIN64 23 const void* __imp___acrt_iob_func = __acrt_iob_func; 24 #else 25 const void* _imp____acrt_iob_func = __acrt_iob_func; 26 #endif 27 28 #endif 29