fixed autoconf and source files to use ASE_HAVE_CONFIG_H

This commit is contained in:
2008-12-13 00:25:48 +00:00
parent d28108c996
commit cdbb0b419d
7 changed files with 196 additions and 77 deletions

View File

@ -219,10 +219,23 @@ ase_fio_off_t ase_fio_seek (
ASE_ASSERT (AES_SIZEOF(offset) <= AES_SIZEOF(x.QuadPart));
x.QuadPart = offset;
if (SetFilePointerEx (
fio->handle, x, &y, seek_map[origin]) == FALSE) return -1;
if (SetFilePointerEx (fio->handle, x, &y, seek_map[origin]) == FALSE)
{
return (ase_fio_off_t)-1;
}
return (ase_fio_off_t)y.QuadPart;
/*
x.QuadPart = offset;
x.LowPart = SetFilePointer (fio->handle, x.LowPart, &x.HighPart, seek_map[origin]);
if (x.LowPart == INVALID_SET_FILE_POINTER && GetLastError() != NO_ERROR)
{
return (ase_fio_off_t)-1;
}
return (ase_fio_off_t)x.QuadPart;
*/
#else
static int seek_map[] =
@ -239,7 +252,10 @@ ase_fio_off_t ase_fio_seek (
(unsigned long)(offset>>32),
(unsigned long)(offset&0xFFFFFFFFlu),
&tmp,
seek_map[origin]) == -1) return -1;
seek_map[origin]) == -1)
{
return (ase_fio_off_t)-1;
}
return (ase_fio_off_t)tmp;