From af5ff94f4efb14bdb6a1b25dd099139c9552fa06 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 13 Dec 2000 01:59:40 +0000 Subject: [PATCH] Fixed crtdll compile problem regarding fpos_t in glibc2.2. --- dlls/crtdll/crtdll.h | 4 ++-- dlls/crtdll/file.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/crtdll/crtdll.h b/dlls/crtdll/crtdll.h index cf08ef082a..45d5525b09 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 2b3151190b..e7ec468ef8 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); } -- 2.32.0.93.g670b81a890