ReactOS 0.4.16-dev-2122-g1628f5e
iob.c
Go to the documentation of this file.
1/*
2 * acrt function needed for compatibility with mingw
3 *
4 * Copyright 2019 Alexandre Julliard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/* this function is part of the import lib for compatibility with ucrt runtime */
22#if 0
23#pragma makedep implib
24#endif
25
26#include <stdio.h>
27#include <wine/asm.h>
28
29#undef __iob_func
30extern FILE * __cdecl __iob_func(void);
31
32/*********************************************************************
33 * __acrt_iob_func(UCRTBASE.@)
34 */
36{
37 return __iob_func() + idx;
38}
unsigned int idx
Definition: utils.c:41
#define __cdecl
Definition: corecrt.h:121
#define __acrt_iob_func(idx)
Definition: msvcrt.h:332
FILE *__cdecl __iob_func(void)
Definition: file.c:972
#define __ASM_GLOBAL_IMPORT(name)
Definition: asm.h:118