From 1c5bfd28f0bfe84aab14ee43508723511d539b70 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Fri, 22 Jan 2016 19:33:30 -0800 Subject: [PATCH] Added fprintf fputc and _StdErr definitions PX4 uses fprintf in numerous places but it is not supported by qurt. Signed-off-by: Mark Charlebois --- src/platforms/qurt/px4_layer/px4_qurt_impl.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp b/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp index 1ffc685182..83eb755ae9 100644 --- a/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp +++ b/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp @@ -176,3 +176,15 @@ int fputc(int c, FILE *stream) { return c; } + +int fprintf(FILE *stream, const char *format, ...) +{ + return 0; +} + +int fputc(int c, FILE *stream) +{ + return c; +} + +FILE _Stderr;