summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-03-10 13:04:13 +0000
committerJosé Fonseca <[email protected]>2008-03-10 14:00:13 +0000
commitb721bc8792f6add71dede11924d7060bbce72f0e (patch)
tree8f1c96eefb4b292a5308b75bfbbffc5a57ebdfd4 /src/gallium/auxiliary/util
parentb041dbe9019ff8cb16ff15d0baaa803c7dc654db (diff)
gallium: WinCE portability fixes.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/p_debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/p_debug.c b/src/gallium/auxiliary/util/p_debug.c
index 7b3c0309565..6255d716a61 100644
--- a/src/gallium/auxiliary/util/p_debug.c
+++ b/src/gallium/auxiliary/util/p_debug.c
@@ -57,12 +57,16 @@ int rpl_vsnprintf(char *, size_t, const char *, va_list);
void debug_vprintf(const char *format, va_list ap)
{
#ifdef WIN32
+#ifndef WINCE
/* EngDebugPrint does not handle float point arguments, so we need to use
* our own vsnprintf implementation */
char buf[512 + 1];
rpl_vsnprintf(buf, sizeof(buf), format, ap);
rpl_EngDebugPrint("%s", buf);
#else
+ /* TODO: Implement debug print for WINCE */
+#endif
+#else
vfprintf(stderr, format, ap);
#endif
}
@@ -80,8 +84,12 @@ void debug_printf(const char *format, ...)
static INLINE void debug_abort(void)
{
#ifdef WIN32
+#ifndef WINCE
EngDebugBreak();
#else
+ _asm {int 3};
+#endif
+#else
abort();
#endif
}