From 4300c7dba2f500cd3b2a664c7491aa3ddb328011 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 15 Oct 2015 00:05:55 +0100 Subject: py: Remove dependency on printf/fwrite in mp_plat_print. See issue #1500. --- unix/mpconfigport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'unix') diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h index 993baca62..df7fa804e 100644 --- a/unix/mpconfigport.h +++ b/unix/mpconfigport.h @@ -191,7 +191,8 @@ void mp_unix_mark_exec(void); #define MP_PLAT_ALLOC_EXEC(min_size, ptr, size) mp_unix_alloc_exec(min_size, ptr, size) #define MP_PLAT_FREE_EXEC(ptr, size) mp_unix_free_exec(ptr, size) -#define MP_PLAT_PRINT_STRN(str, len) fwrite(str, 1, len, stdout) +#include +#define MP_PLAT_PRINT_STRN(str, len) write(1, str, len) #ifdef __linux__ // Can access physical memory using /dev/mem -- cgit v1.2.3