Changeset 1376:f8598fd4ec5c in roaraudio


Ignore:
Timestamp:
03/25/09 13:34:16 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

don't produce invalide code if wether fopencookie() nor funopen() was found, make stdio part optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r1351 r1376  
    249249 
    250250int     roar_vio_open_stdio    (struct roar_vio_calls * calls, FILE * dst) { 
     251#ifndef ROAR_WITHOUT_VIO_STDIO 
    251252 if ( calls == NULL || dst == NULL ) 
    252253  return -1; 
     
    263264 
    264265 return 0; 
     266#else 
     267 return -1; 
     268#endif 
    265269} 
    266270 
     
    293297 return roar_vio_close((struct roar_vio_calls *) __cookie); 
    294298} 
    295 #endif 
    296299 
    297300#if defined(ROAR_HAVE_FOPENCOOKIE) 
     
    317320 return roar_vio_lseek((struct roar_vio_calls *) __cookie, __pos, __w); 
    318321} 
     322#endif 
    319323#endif 
    320324 
     
    482486 
    483487// stdio: 
     488#ifndef ROAR_WITHOUT_VIO_STDIO 
    484489ssize_t roar_vio_stdio_read    (struct roar_vio_calls * vio, void *buf, size_t count) { 
    485490 return fread(buf, 1, count, (FILE*)(vio->inst)); 
     
    504509 return fclose((FILE*)(vio->inst)); 
    505510} 
     511#endif 
    506512 
    507513//ll 
Note: See TracChangeset for help on using the changeset viewer.