summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
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 7b3c030956..6255d716a6 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
}