Fixed crtdll compile problem regarding fpos_t in glibc2.2.
This commit is contained in:
parent
61e48c7af1
commit
af5ff94f4e
|
@ -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 );
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue