mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
ucrtbase: Fix _iobuf struct layout.
This commit is contained in:
parent
98e74c7842
commit
fc8121d05f
|
@ -20,6 +20,23 @@
|
|||
#ifndef __WINE_MSVCRT_H
|
||||
#define __WINE_MSVCRT_H
|
||||
|
||||
#if _MSVCR_VER >= 140
|
||||
#ifndef _FILE_DEFINED
|
||||
#define _FILE_DEFINED
|
||||
typedef struct _iobuf
|
||||
{
|
||||
char* _ptr;
|
||||
char* _base;
|
||||
int _cnt;
|
||||
int _flag;
|
||||
int _file;
|
||||
int _charbuf;
|
||||
int _bufsiz;
|
||||
char* _tmpfname;
|
||||
} FILE;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -25,6 +25,9 @@ extern "C" {
|
|||
#include <pshpack8.h>
|
||||
typedef struct _iobuf
|
||||
{
|
||||
#ifdef _UCRT
|
||||
void *_Placeholder;
|
||||
#else
|
||||
char* _ptr;
|
||||
int _cnt;
|
||||
char* _base;
|
||||
|
@ -33,6 +36,7 @@ typedef struct _iobuf
|
|||
int _charbuf;
|
||||
int _bufsiz;
|
||||
char* _tmpfname;
|
||||
#endif
|
||||
} FILE;
|
||||
#include <poppack.h>
|
||||
#endif /* _FILE_DEFINED */
|
||||
|
|
Loading…
Reference in a new issue