diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-03 18:30:10 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-03 18:30:10 +0000 |
commit | 96a0addb18e86a3e8ecb627cc804fe06b272b223 (patch) | |
tree | 05dd220ababe35306cec012a74d92d9d64967e37 | |
parent | 2f06c57f8a17dc7cfb66288387b62a42aacafe94 (diff) | |
download | micropython-96a0addb18e86a3e8ecb627cc804fe06b272b223.tar.gz micropython-96a0addb18e86a3e8ecb627cc804fe06b272b223.zip |
Fixup include of stdarg and va_list definition.
-rw-r--r-- | py/misc.h | 3 | ||||
-rw-r--r-- | py/runtime.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -83,7 +83,10 @@ void vstr_add_strn(vstr_t *vstr, const char *str, int len); //void vstr_add_le32(vstr_t *vstr, unsigned int v); void vstr_cut_tail(vstr_t *vstr, int len); void vstr_printf(vstr_t *vstr, const char *fmt, ...); + +#ifdef va_start void vstr_vprintf(vstr_t *vstr, const char *fmt, va_list ap); +#endif /** unique string ***********************************************/ diff --git a/py/runtime.c b/py/runtime.c index ef3897bbef..5c044d2216 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); |