msvcrt: Fix __p__fmode() prototype.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2018-12-14 17:39:06 +01:00
parent 32bac73463
commit e4d34098a6
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ int MSVCRT___argc = 0;
static int argc_expand;
static int wargc_expand;
unsigned int MSVCRT__commode = 0;
unsigned int MSVCRT__fmode = 0;
int MSVCRT__fmode = 0;
unsigned int MSVCRT__osver = 0;
unsigned int MSVCRT__osplatform = 0;
unsigned int MSVCRT__winmajor = 0;
@ -180,7 +180,7 @@ int CDECL _get_wpgmptr(WCHAR** p)
/***********************************************************************
* __p__fmode (MSVCRT.@)
*/
unsigned int* CDECL __p__fmode(void) { return &MSVCRT__fmode; }
int* CDECL __p__fmode(void) { return &MSVCRT__fmode; }
/***********************************************************************
* _set_fmode (MSVCRT.@)

View File

@ -1121,7 +1121,7 @@ int WINAPIV _cprintf(const char*,...);
int WINAPIV _cwprintf(const MSVCRT_wchar_t*,...);
char*** __cdecl MSVCRT___p__environ(void);
int* __cdecl __p___mb_cur_max(void);
unsigned int* __cdecl __p__fmode(void);
int* __cdecl __p__fmode(void);
MSVCRT_wchar_t* __cdecl MSVCRT__wcsdup(const MSVCRT_wchar_t*);
MSVCRT_size_t __cdecl MSVCRT_strnlen(const char *,MSVCRT_size_t);
MSVCRT_size_t __cdecl MSVCRT_wcsnlen(const MSVCRT_wchar_t*,MSVCRT_size_t);

View File

@ -109,7 +109,7 @@ extern char*** __cdecl __p__environ(void);
#define _environ (*__p__environ())
extern wchar_t*** __cdecl __p__wenviron(void);
#define _wenviron (*__p__wenviron())
extern unsigned int* __cdecl __p__fmode(void);
extern int* __cdecl __p__fmode(void);
#define _fmode (*__p__fmode())
#else /* __i386__ */