summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c
index ef3897bbe..5c044d221 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -5,6 +5,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
+#include <stdarg.h>
#include <string.h>
#include <assert.h>
@@ -614,8 +615,6 @@ void py_user_set_data(py_obj_t o, machine_uint_t data1, machine_uint_t data2) {
((py_obj_base_t*)o)->u_user.data2 = data2;
}
-#include <stdarg.h>
-
void printf_wrapper(void *env, const char *fmt, ...) {
va_list args;
va_start(args, fmt);