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. --- qemu-arm/mpconfigport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qemu-arm') diff --git a/qemu-arm/mpconfigport.h b/qemu-arm/mpconfigport.h index 3a5a76a45..b6e5d4882 100644 --- a/qemu-arm/mpconfigport.h +++ b/qemu-arm/mpconfigport.h @@ -39,6 +39,9 @@ typedef void *machine_ptr_t; // must be of pointer size typedef const void *machine_const_ptr_t; // must be of pointer size typedef long mp_off_t; +#include +#define MP_PLAT_PRINT_STRN(str, len) write(1, str, len) + // extra built in names to add to the global namespace extern const struct _mp_obj_fun_builtin_t mp_builtin_open_obj; #define MICROPY_PORT_BUILTINS \ -- cgit v1.2.3