summaryrefslogtreecommitdiff
path: root/src/win32/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/mmap.h')
-rw-r--r--src/win32/mmap.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/win32/mmap.h b/src/win32/mmap.h
index 1f2e756..633816b 100644
--- a/src/win32/mmap.h
+++ b/src/win32/mmap.h
@@ -1,5 +1,7 @@
-#ifndef STLINK_MMAP_H
-#define STLINK_MMAP_H
+#ifndef MMAP_H
+#define MMAP_H
+
+#include <stdint.h>
#ifdef STLINK_HAVE_SYS_MMAN_H
#include <sys/mman.h>
@@ -13,17 +15,9 @@
#define MAP_ANONYMOUS (1 << 5)
#define MAP_FAILED ((void *)-1)
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void *mmap(void *addr, size_t len, int prot, int flags, int fd, long long offset);
-int munmap(void *addr, size_t len);
-
-#ifdef __cplusplus
-}
-#endif
+void *mmap(void *addr, uint32_t len, int32_t prot, int32_t flags, int32_t fd, int64_t offset);
+int32_t munmap(void *addr, uint32_t len);
-#endif /* HAVE_SYS_MMAN_H */
+#endif // STLINK_HAVE_SYS_MMAN_H
-#endif /* STLINK_MMAP_H */
+#endif // MMAP_H