diff options
author | José Fonseca <[email protected]> | 2008-03-10 13:04:13 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-03-10 14:00:13 +0000 |
commit | b721bc8792f6add71dede11924d7060bbce72f0e (patch) | |
tree | 8f1c96eefb4b292a5308b75bfbbffc5a57ebdfd4 /src/gallium/include | |
parent | b041dbe9019ff8cb16ff15d0baaa803c7dc654db (diff) |
gallium: WinCE portability fixes.
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h index 3b32ba1d248..ef36ce75f7d 100644 --- a/src/gallium/include/pipe/p_util.h +++ b/src/gallium/include/pipe/p_util.h @@ -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 } } |