More minor OS/2 tweaks.
This commit is contained in:
parent
8f3ab12d22
commit
49ebc305ac
|
@ -3,6 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!).
|
07232005 - Fixed bug in zip archiver (thanks, Jörg Walter!).
|
||||||
|
More minor OS/2 tweaks.
|
||||||
07212005 - Patched to compile on OS/2 again.
|
07212005 - Patched to compile on OS/2 again.
|
||||||
07132005 - Updated zlib to 1.2.2, and patched it for this security hole:
|
07132005 - Updated zlib to 1.2.2, and patched it for this security hole:
|
||||||
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
|
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2096
|
||||||
|
|
|
@ -741,6 +741,39 @@ void __PHYSFS_platformReleaseMutex(void *mutex)
|
||||||
DosReleaseMutexSem((HMTX) mutex);
|
DosReleaseMutexSem((HMTX) mutex);
|
||||||
} /* __PHYSFS_platformReleaseMutex */
|
} /* __PHYSFS_platformReleaseMutex */
|
||||||
|
|
||||||
|
|
||||||
|
int __PHYSFS_platformAllocatorInit(void)
|
||||||
|
{
|
||||||
|
return(1); /* always succeeds. */
|
||||||
|
} /* __PHYSFS_platformAllocatorInit */
|
||||||
|
|
||||||
|
|
||||||
|
void __PHYSFS_platformAllocatorDeinit(void)
|
||||||
|
{
|
||||||
|
/* no-op */
|
||||||
|
} /* __PHYSFS_platformAllocatorInit */
|
||||||
|
|
||||||
|
|
||||||
|
void *__PHYSFS_platformAllocatorMalloc(size_t s)
|
||||||
|
{
|
||||||
|
#undef malloc
|
||||||
|
return(malloc(s));
|
||||||
|
} /* __PHYSFS_platformMalloc */
|
||||||
|
|
||||||
|
|
||||||
|
void *__PHYSFS_platformAllocatorRealloc(void *ptr, size_t s)
|
||||||
|
{
|
||||||
|
#undef realloc
|
||||||
|
return(realloc(ptr, s));
|
||||||
|
} /* __PHYSFS_platformRealloc */
|
||||||
|
|
||||||
|
|
||||||
|
void __PHYSFS_platformAllocatorFree(void *ptr)
|
||||||
|
{
|
||||||
|
#undef free
|
||||||
|
free(ptr);
|
||||||
|
} /* __PHYSFS_platformAllocatorFree */
|
||||||
|
|
||||||
#endif /* defined OS2 */
|
#endif /* defined OS2 */
|
||||||
|
|
||||||
/* end of os2.c ... */
|
/* end of os2.c ... */
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined WIN32)
|
#if ((!defined WIN32) && (!defined OS2))
|
||||||
|
|
||||||
#if (defined __STRICT_ANSI__)
|
#if (defined __STRICT_ANSI__)
|
||||||
#define __PHYSFS_DOING_STRICT_ANSI__
|
#define __PHYSFS_DOING_STRICT_ANSI__
|
||||||
|
|
Loading…
Reference in New Issue