Changeset 1081:a73140c3c82b in roaraudio
- Timestamp:
- 12/28/08 18:28:26 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/file.c
r1000 r1081 116 116 117 117 ssize_t roar_file_map (char * filename, int flags, mode_t mode, size_t len, void ** mem) { 118 #ifndef ROAR_TARGET_WIN32 118 119 int fh; 119 120 int mmap_flags = 0; … … 157 158 158 159 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 159 164 } 160 165 161 166 int roar_file_unmap (size_t len, void * mem) { 167 #ifndef ROAR_TARGET_WIN32 162 168 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 163 173 } 164 174
Note: See TracChangeset
for help on using the changeset viewer.