X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fmemmap.h;h=ad56f0470755ee428133c55659c3ffad861b2637;hb=HEAD;hp=262cd7c2b61c8ec1a44bc5a1d5d78017ff50f109;hpb=503c59b25b763be2b2e068fe5089449e1c780bbc;p=pcsx_rearmed.git diff --git a/libpcsxcore/memmap.h b/libpcsxcore/memmap.h index 262cd7c2..d16dea0b 100644 --- a/libpcsxcore/memmap.h +++ b/libpcsxcore/memmap.h @@ -34,6 +34,9 @@ #include <_mingw.h> #endif +#endif //_WIN32 + +#if defined(_WIN32) || !P_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 };