Fixup include of stdarg and va_list definition.

This commit is contained in:
Damien 2013-11-03 18:30:10 +00:00
parent 2f06c57f8a
commit 96a0addb18
2 changed files with 4 additions and 2 deletions

View File

@ -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 ***********************************************/

View File

@ -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);