diff options
author | José Fonseca <[email protected]> | 2008-08-19 21:33:59 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-08-19 21:35:06 +0100 |
commit | 9e3aaa50483b61d644306d483feed564c69018bf (patch) | |
tree | f7613eb974f7dc87a7f3ef13593a220884f59300 | |
parent | d7f8b95e097121a8c33332f920115795853d6ad7 (diff) |
gallium: WinCE build fixes.
-rw-r--r-- | src/gallium/auxiliary/util/u_snprintf.c | 9 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_util.h | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_snprintf.c b/src/gallium/auxiliary/util/u_snprintf.c index 7fa84d8bec6..0d54299b28a 100644 --- a/src/gallium/auxiliary/util/u_snprintf.c +++ b/src/gallium/auxiliary/util/u_snprintf.c @@ -334,6 +334,15 @@ static void *mymemcpy(void *, void *, size_t); #endif /* HAVE_UINTPTR_T || defined(uintptr_t) */ #endif /* !defined(UINTPTR_T) */ +/* WinCE5.0 does not have uintptr_t defined */ +#if (_WIN32_WCE < 600) +#ifdef UINTPTR_T +#undef UINTPTR_T +#endif +#define UINTPTR_T unsigned long int +#endif + + /* Support for ptrdiff_t. */ #ifndef PTRDIFF_T #if HAVE_PTRDIFF_T || defined(ptrdiff_t) diff --git a/src/gallium/include/pipe/p_util.h b/src/gallium/include/pipe/p_util.h index b4ab70a3fc8..473a8d94abb 100644 --- a/src/gallium/include/pipe/p_util.h +++ b/src/gallium/include/pipe/p_util.h @@ -99,6 +99,12 @@ __inline double __cdecl atan2(double val) #include <stdarg.h> #endif + /* Define ENOMEM for WINCE */ +#if (_WIN32_WCE < 600) +#ifndef ENOMEM +#define ENOMEM 12 +#endif +#endif #ifdef __cplusplus extern "C" { |