mfplat/sample: Optimize copying to 2d buffer.
[wine.git] / dlls / msvcrt / iob.c
blob4d8456867a8b179ceb5a5277282f3617f57662d0
1 /*
2 * acrt function needed for compatibility with mingw
4 * Copyright 2019 Alexandre Julliard
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.
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.
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
21 /* this function is part of the import lib for compatibility with ucrt runtime */
22 #if 0
23 #pragma makedep implib
24 #endif
26 #include <stdio.h>
27 #include <wine/asm.h>
29 #undef __iob_func
30 extern FILE * __cdecl __iob_func(void);
32 /*********************************************************************
33 * __acrt_iob_func(UCRTBASE.@)
35 FILE * __cdecl __acrt_iob_func(unsigned idx)
37 return __iob_func() + idx;
39 __ASM_GLOBAL_IMPORT(__acrt_iob_func)