ReactOS 0.4.17-dev-577-ge3e58ac
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 */
18{
19 return &__iob_func()[index];
20}
21
22// Import slot bound to the static definition, so the GCC and LLVM C++ runtimes can link
23#include <imp_alias.h>
25
26#endif
#define index(s, c)
Definition: various.h:29
#define CDECL
Definition: compat.h:29
FILE *CDECL __iob_func(void)
Definition: file.c:972
#define __acrt_iob_func(idx)
Definition: msvcrt.h:332
GLuint index
Definition: glext.h:6031
#define IMP_ALIAS_CDECL(name)
Definition: imp_alias.h:28