OSDN Git Service

gallium: WinCE build fixes.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 19 Aug 2008 20:33:59 +0000 (21:33 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 19 Aug 2008 20:35:06 +0000 (21:35 +0100)
src/gallium/auxiliary/util/u_snprintf.c
src/gallium/include/pipe/p_util.h

index 7fa84d8..0d54299 100644 (file)
@@ -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)
index b4ab70a..473a8d9 100644 (file)
@@ -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" {