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
*/
17
FILE
*
CDECL
__acrt_iob_func
(
int
index
)
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
>
24
IMP_ALIAS_CDECL
(
__acrt_iob_func
);
25
26
#endif
index
#define index(s, c)
Definition:
various.h:29
CDECL
#define CDECL
Definition:
compat.h:29
__iob_func
FILE *CDECL __iob_func(void)
Definition:
file.c:972
__acrt_iob_func
#define __acrt_iob_func(idx)
Definition:
msvcrt.h:332
index
GLuint index
Definition:
glext.h:6031
imp_alias.h
IMP_ALIAS_CDECL
#define IMP_ALIAS_CDECL(name)
Definition:
imp_alias.h:28
_iobuf
Definition:
corecrt_wstdio.h:27
sdk
lib
crt
stdio
acrt_iob_func.c
Generated on Sun Aug 2 2026 06:17:12 for ReactOS by
1.9.6