u3: rename function to avoid name clash on MingW
@@ -97,7 +97,7 @@ _cm_punt(u3_noun tax)
}
#endif
-static void _write(int fd, const void *buf, size_t count)
+static void _write_or_fail(int fd, const void *buf, size_t count)
{
if (count != write(fd, buf, count)){
u3l_log("write failed\r\n");
@@ -111,14 +111,14 @@ static void _write(int fd, const void *buf, size_t count)
static void
_cm_emergency(c3_c* cap_c, c3_l sig_l)
{
- _write(2, "\r\n", 2);
- _write(2, cap_c, strlen(cap_c));
+ _write_or_fail(2, "\r\n", 2);
+ _write_or_fail(2, cap_c, strlen(cap_c));
if ( sig_l ) {
- _write(2, ": ", 2);
- _write(2, &sig_l, 4);
+ _write_or_fail(2, ": ", 2);
+ _write_or_fail(2, &sig_l, 4);
}
- _write(2, "\r\n", 2);
+ _write_or_fail(2, "\r\n", 2);
}
static void _cm_overflow(void *arg1, void *arg2, void *arg3)
