gallium: WinCE portability fixes.

This commit is contained in:
José Fonseca
2008-03-10 13:04:13 +00:00
parent b041dbe901
commit b721bc8792
6 changed files with 24 additions and 6 deletions

View File

@@ -54,7 +54,12 @@ EngFreeMem(
static INLINE void *
MALLOC( unsigned size )
{
#ifdef WINCE
/* TODO: Need to abstract this */
return malloc( size );
#else
return EngAllocMem( 0, size, 'D3AG' );
#endif
}
static INLINE void *
@@ -71,7 +76,12 @@ static INLINE void
FREE( void *ptr )
{
if( ptr ) {
#ifdef WINCE
/* TODO: Need to abstract this */
free( ptr );
#else
EngFreeMem( ptr );
#endif
}
}