diff --git a/dlls/crtdll/crtdll.h b/dlls/crtdll/crtdll.h index cf08ef082a6..45d5525b09a 100644 --- a/dlls/crtdll/crtdll.h +++ b/dlls/crtdll/crtdll.h @@ -205,7 +205,7 @@ struct _timeb INT16 dstflag; }; -typedef long fpos_t; +typedef long CRTDLL_fpos_t; struct complex { @@ -294,7 +294,7 @@ INT __cdecl CRTDLL__fcloseall( VOID ); LONG __cdecl CRTDLL__lseek( INT fd, LONG offset, INT whence ); LONG __cdecl CRTDLL_fseek( CRTDLL_FILE* file, LONG offset, INT whence ); VOID __cdecl CRTDLL_rewind( CRTDLL_FILE* file ); -INT __cdecl CRTDLL_fsetpos( CRTDLL_FILE* file, fpos_t *pos ); +INT __cdecl CRTDLL_fsetpos( CRTDLL_FILE* file, CRTDLL_fpos_t *pos ); LONG __cdecl CRTDLL_ftell( CRTDLL_FILE* file ); UINT __cdecl CRTDLL_fwrite( LPCVOID ptr,INT size,INT nmemb,CRTDLL_FILE*file); INT __cdecl CRTDLL_setbuf( CRTDLL_FILE* file, LPSTR buf ); diff --git a/dlls/crtdll/file.c b/dlls/crtdll/file.c index 2b3151190b2..e7ec468ef89 100644 --- a/dlls/crtdll/file.c +++ b/dlls/crtdll/file.c @@ -1182,7 +1182,7 @@ INT __cdecl CRTDLL_fgetc( CRTDLL_FILE* file ) /********************************************************************* * fgetpos (CRTDLL.364) */ -INT __cdecl CRTDLL_fgetpos( CRTDLL_FILE* file, fpos_t *pos) +INT __cdecl CRTDLL_fgetpos( CRTDLL_FILE* file, CRTDLL_fpos_t *pos) { *pos = CRTDLL__tell(file->_file); return (*pos == -1? -1 : 0); @@ -1384,7 +1384,7 @@ CRTDLL_FILE* __cdecl CRTDLL_freopen(LPCSTR path, LPCSTR mode,CRTDLL_FILE* file) /********************************************************************* * fsetpos (CRTDLL.380) */ -INT __cdecl CRTDLL_fsetpos( CRTDLL_FILE* file, fpos_t *pos) +INT __cdecl CRTDLL_fsetpos( CRTDLL_FILE* file, CRTDLL_fpos_t *pos) { return CRTDLL__lseek(file->_file,*pos,SEEK_SET); }