X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fmemmap.h;h=da1d0e119faa117b46baed86cdbe6b7f7c70dfa3;hp=262cd7c2b61c8ec1a44bc5a1d5d78017ff50f109;hb=5e282df80d579f9a19c77a655c2c0dda6dc2c7b4;hpb=3d1c03e76934037a5abab13f250bf5f27629d356 diff --git a/libpcsxcore/memmap.h b/libpcsxcore/memmap.h index 262cd7c2..da1d0e11 100644 --- a/libpcsxcore/memmap.h +++ b/libpcsxcore/memmap.h @@ -34,6 +34,9 @@ #include <_mingw.h> #endif +#endif //_WIN32 + +#if defined(_WIN32) || !HAVE_MMAP #include #ifdef __cplusplus @@ -60,12 +63,14 @@ extern "C" { #define MS_SYNC 2 #define MS_INVALIDATE 4 +#ifdef _WIN32 void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off); int munmap(void *addr, size_t len); int mprotect(void *addr, size_t len, int prot); int msync(void *addr, size_t len, int flags); int mlock(const void *addr, size_t len); int munlock(const void *addr, size_t len); +#endif #ifdef __cplusplus };