summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
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
parentb041dbe9019ff8cb16ff15d0baaa803c7dc654db (diff)
gallium: WinCE portability fixes.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_unfilled.c2
-rw-r--r--src/gallium/auxiliary/util/p_debug.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_unfilled.c b/src/gallium/auxiliary/draw/draw_unfilled.c
index 4d718d514c6..b07860cd9ea 100644
--- a/src/gallium/auxiliary/draw/draw_unfilled.c
+++ b/src/gallium/auxiliary/draw/draw_unfilled.c
@@ -129,7 +129,7 @@ static void unfilled_tri( struct draw_stage *stage,
points( stage, header );
break;
default:
- abort();
+ assert(0);
}
}
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
}