mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
25 lines
714 B
C
25 lines
714 B
C
![]() |
/*
|
||
|
* PROJECT: ReactOS CRT library
|
||
|
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||
|
* PURPOSE: __acrt_iob_func implementation
|
||
|
* COPYRIGHT: Victor Perevertkin <victor.perevertkin@reactos.org>
|
||
|
*/
|
||
|
|
||
|
// Evil hack necessary, because we're linking to the RosBE-provided libstdc++ when using GCC.
|
||
|
// This can only be solved cleanly by adding a GCC-compatible C++ standard library to our tree.
|
||
|
#ifdef __GNUC__
|
||
|
|
||
|
#include <precomp.h>
|
||
|
|
||
|
/*********************************************************************
|
||
|
* __acrt_iob_func(MSVCRT.@)
|
||
|
*/
|
||
|
FILE * CDECL __acrt_iob_func(int index)
|
||
|
{
|
||
|
return &__iob_func()[index];
|
||
|
}
|
||
|
|
||
|
const void* _imp____acrt_iob_func = __acrt_iob_func;
|
||
|
|
||
|
#endif
|