platform/posix.c
changeset 644 1cb5533d369c
parent 596 381b6ca0dd85
child 648 5c993684b8f2
--- a/platform/posix.c	Thu Sep 23 06:38:51 2004 +0000
+++ b/platform/posix.c	Thu Sep 23 06:45:36 2004 +0000
@@ -500,6 +500,37 @@
     return statbuf.st_mtime;
 } /* __PHYSFS_platformGetLastModTime */
 
+
+PHYSFS_memhandle __PHYSFS_platformMalloc(size_t s)
+{
+    assert(sizeof (h) == sizeof (void *));
+    return((PHYSFS_memhandle) malloc(s));
+} /* __PHYSFS_platformMalloc */
+
+
+PHYSFS_memhandle __PHYSFS_platformRealloc(PHYSFS_memhandle h, size_t s)
+{
+    return((PHYSFS_memhandle) realloc((void *) h, s));
+} /* __PHYSFS_platformRealloc */
+
+
+void __PHYSFS_platformFree(PHYSFS_memhandle h)
+{
+    free((void *) h);
+} /* __PHYSFS_platformFree */
+
+
+void *__PHYSFS_platformLock(PHYSFS_memhandle h)
+{
+    return((void *) h);
+} /* __PHYSFS_platformLock */
+
+
+void __PHYSFS_platformUnlock(PHYSFS_memhandle h)
+{
+    /* no-op. */
+} /* __PHYSFS_platformUnlock */
+
 #endif /* !defined WIN32 */
 
 /* end of posix.c ... */