Changeset 1081:a73140c3c82b in roaraudio


Ignore:
Timestamp:
12/28/08 18:28:26 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

no support for mmap() within win32...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/file.c

    r1000 r1081  
    116116 
    117117ssize_t     roar_file_map        (char * filename, int flags, mode_t mode, size_t len, void ** mem) { 
     118#ifndef ROAR_TARGET_WIN32 
    118119 int fh; 
    119120 int mmap_flags = 0; 
     
    157158 
    158159 return len; 
     160#else 
     161 ROAR_ERR("roar_file_map(*): There is no support to fast access files via mmap() within win32, download a real OS..."); 
     162 return -1; 
     163#endif 
    159164} 
    160165 
    161166int     roar_file_unmap      (size_t len, void * mem) { 
     167#ifndef ROAR_TARGET_WIN32 
    162168 return munmap(mem, len); 
     169#else 
     170 ROAR_ERR("roar_file_map(*): There is no support to fast access files via mmap() within win32, download a real OS..."); 
     171 return -1; 
     172#endif 
    163173} 
    164174 
Note: See TracChangeset for help on using the changeset viewer.