Changeset 5502:c62b19461dc4 in roaraudio


Ignore:
Timestamp:
05/15/12 13:28:21 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

do not use ftell() on win32 as it is broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_stdio.c

    r5388 r5502  
    134134 
    135135roar_off_t   roar_vio_stdio_lseek   (struct roar_vio_calls * vio, roar_off_t offset, int whence) { 
    136 #if defined(ROAR_HAVE_FSEEK) && defined(ROAR_HAVE_FTELL) 
     136// ftell() is broken on win. It sometimes returnes the binary offset and sometimes 
     137// the text mode offset (why? why are both diffrent?). 
     138#if defined(ROAR_HAVE_FSEEK) && defined(ROAR_HAVE_FTELL) && !defined(ROAR_TARGET_WIN32) 
    137139 if ( fseek((FILE*)(vio->inst), offset, whence) == -1 ) 
    138140  return -1; 
Note: See TracChangeset for help on using the changeset viewer.