diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-10-15 00:05:55 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-10-15 00:05:55 +0100 |
| commit | 4300c7dba2f500cd3b2a664c7491aa3ddb328011 (patch) | |
| tree | f51c1a0aa2a7e9e56e8276a49fb7ff096a74e0ba /qemu-arm | |
| parent | 74d0df7324f23cfbbc2ae5b0cd0bf7f214fd05e5 (diff) | |
py: Remove dependency on printf/fwrite in mp_plat_print.
See issue #1500.
Diffstat (limited to 'qemu-arm')
| -rw-r--r-- | qemu-arm/mpconfigport.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <unistd.h> +#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 \ |
