diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-09 09:04:04 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-08-09 09:04:04 +0000 |
| commit | 70d1ec4e0111c02c71b417136aae37a43983ba10 (patch) | |
| tree | 7fd643ecc809a519b0f07e62392be21f47d74714 /win32/glue/sys | |
| parent | f17e942cc9e95674fbfe63c98d0af793b9aeb9b2 (diff) | |
| download | pcsxr-70d1ec4e0111c02c71b417136aae37a43983ba10.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@24786 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'win32/glue/sys')
| -rw-r--r-- | win32/glue/sys/mman.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/win32/glue/sys/mman.h b/win32/glue/sys/mman.h index 0309f982..a803408a 100644 --- a/win32/glue/sys/mman.h +++ b/win32/glue/sys/mman.h @@ -4,28 +4,17 @@ // Use, redistribution and modification of this code is unrestricted
// as long as this notice is preserved.
//
+// This code is provided with ABSOLUTELY NO WARRANTY.
+//
#ifndef MMAN_H
#define MMAN_H
-#define PROT_WRITE 0
-#define PROT_READ 0
-#define PROT_EXEC 0
-#define MAP_PRIVATE 0
-#define MAP_ANONYMOUS 0
-
#include <stdlib.h>
-static inline void *mmap(void *start, size_t length, int prot, int flags,
- int fd, off_t offset)
-{
- return (unsigned char *)malloc(length);
-}
+#define mmap(start, length, prot, flags, fd, offset) \
+ ((unsigned char *)malloc(length))
-static inline int munmap(void *start, size_t length)
-{
- free(start);
- return 0;
-}
+#define munmap(start, length) do { free(start); } while (0)
#endif
|
