ReactOS 0.4.15-dev-7906-g1b85a5f
acrt_iob_func.c
Go to the documentation of this file.
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 */
17FILE * CDECL __acrt_iob_func(int index)
18{
19 return &__iob_func()[index];
20}
21
22#ifdef WIN64
23const void* __imp___acrt_iob_func = __acrt_iob_func;
24#else
25const void* _imp____acrt_iob_func = __acrt_iob_func;
26#endif
27
28#endif
#define index(s, c)
Definition: various.h:29
#define CDECL
Definition: compat.h:29
GLuint index
Definition: glext.h:6031
_CRTIMP FILE *__cdecl __iob_func(void)
Definition: file.c:682