aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/compat.h')
-rw-r--r--Alc/compat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Alc/compat.h b/Alc/compat.h
index 0443692a..114fc655 100644
--- a/Alc/compat.h
+++ b/Alc/compat.h
@@ -25,6 +25,19 @@ FILE *al_fopen(const char *fname, const char *mode);
#endif
+struct FileMapping {
+#ifdef _WIN32
+ HANDLE file;
+ HANDLE fmap;
+#else
+ int fd;
+#endif
+ void *ptr;
+ size_t len;
+};
+struct FileMapping MapFileToMem(const char *fname);
+void UnmapFileMem(const struct FileMapping *mapping);
+
al_string GetProcPath(void);
#ifdef HAVE_DYNLOAD