Changeset 1442:24423ef2ecc3 in roaraudio
- Timestamp:
- 03/26/09 20:05:07 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/file.c
r1379 r1442 118 118 119 119 ssize_t roar_file_map (char * filename, int flags, mode_t mode, size_t len, void ** mem) { 120 #if ndef ROAR_TARGET_WIN32120 #ifdef ROAR_HAVE_MMAP 121 121 int fh; 122 122 int mmap_flags = 0; … … 161 161 return len; 162 162 #else 163 #ifdef ROAR_TARGET_WIN32 163 164 ROAR_ERR("roar_file_map(*): There is no support to fast access files via mmap() within win32, download a real OS..."); 165 #endif 164 166 return -1; 165 167 #endif … … 167 169 168 170 int roar_file_unmap (size_t len, void * mem) { 169 #if ndef ROAR_TARGET_WIN32171 #ifdef ROAR_HAVE_MMAP 170 172 return munmap(mem, len); 171 173 #else 174 #ifdef ROAR_TARGET_WIN32 172 175 ROAR_ERR("roar_file_map(*): There is no support to fast access files via mmap() within win32, download a real OS..."); 176 #endif 173 177 return -1; 174 178 #endif
Note: See TracChangeset
for help on using the changeset viewer.