aboutsummaryrefslogtreecommitdiff
path: root/py/pfenv_printf.c
diff options
context:
space:
mode:
authorDamien George2015-01-12 22:30:49 +0000
committerDamien George2015-01-12 22:30:49 +0000
commitcd3420740909b3b6a2140b613b591b7556b417a2 (patch)
tree767cea7dc4f378781da48d90fe0952c74979ac63 /py/pfenv_printf.c
parent3dd1c0a88aadb2fef210375709a32b6fdf88d3a7 (diff)
py: Can compile with -Wmissing-declarations and -Wmissing-prototypes.
Diffstat (limited to 'py/pfenv_printf.c')
-rw-r--r--py/pfenv_printf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/pfenv_printf.c b/py/pfenv_printf.c
index 39bf321ce..a68788a7f 100644
--- a/py/pfenv_printf.c
+++ b/py/pfenv_printf.c
@@ -27,6 +27,7 @@
#include <assert.h>
#include <string.h>
#include <stdarg.h>
+#include <stdio.h>
#include "py/pfenv.h"
@@ -193,3 +194,10 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, ...) {
va_end(ap);
return ret;
}
+
+void printf_wrapper(void *env, const char *fmt, ...) {
+ va_list args;
+ va_start(args, fmt);
+ vprintf(fmt, args);
+ va_end(args);
+}