equal
deleted
inserted
replaced
739 void __PHYSFS_platformReleaseMutex(void *mutex) |
739 void __PHYSFS_platformReleaseMutex(void *mutex) |
740 { |
740 { |
741 DosReleaseMutexSem((HMTX) mutex); |
741 DosReleaseMutexSem((HMTX) mutex); |
742 } /* __PHYSFS_platformReleaseMutex */ |
742 } /* __PHYSFS_platformReleaseMutex */ |
743 |
743 |
|
744 |
|
745 int __PHYSFS_platformAllocatorInit(void) |
|
746 { |
|
747 return(1); /* always succeeds. */ |
|
748 } /* __PHYSFS_platformAllocatorInit */ |
|
749 |
|
750 |
|
751 void __PHYSFS_platformAllocatorDeinit(void) |
|
752 { |
|
753 /* no-op */ |
|
754 } /* __PHYSFS_platformAllocatorInit */ |
|
755 |
|
756 |
|
757 void *__PHYSFS_platformAllocatorMalloc(size_t s) |
|
758 { |
|
759 #undef malloc |
|
760 return(malloc(s)); |
|
761 } /* __PHYSFS_platformMalloc */ |
|
762 |
|
763 |
|
764 void *__PHYSFS_platformAllocatorRealloc(void *ptr, size_t s) |
|
765 { |
|
766 #undef realloc |
|
767 return(realloc(ptr, s)); |
|
768 } /* __PHYSFS_platformRealloc */ |
|
769 |
|
770 |
|
771 void __PHYSFS_platformAllocatorFree(void *ptr) |
|
772 { |
|
773 #undef free |
|
774 free(ptr); |
|
775 } /* __PHYSFS_platformAllocatorFree */ |
|
776 |
744 #endif /* defined OS2 */ |
777 #endif /* defined OS2 */ |
745 |
778 |
746 /* end of os2.c ... */ |
779 /* end of os2.c ... */ |
747 |
780 |