From 5e8380ff41aa8ca0f02317e4a75fe04706bb5020 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Nov 2020 13:06:04 +1100 Subject: [PATCH] AP_HAL: allow replay on ChibiOS --- libraries/AP_HAL/utility/getopt_cpp.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/AP_HAL/utility/getopt_cpp.cpp b/libraries/AP_HAL/utility/getopt_cpp.cpp index fd324418f0..d644014567 100644 --- a/libraries/AP_HAL/utility/getopt_cpp.cpp +++ b/libraries/AP_HAL/utility/getopt_cpp.cpp @@ -36,13 +36,12 @@ */ #include -#if HAL_OS_POSIX_IO #include "getopt_cpp.h" #include #include -#define GETOPT_ERROR(...) fprintf(stderr, __VA_ARGS__) +#define GETOPT_ERROR(...) ::printf(__VA_ARGS__) /* @@ -207,5 +206,3 @@ int GetOptLong::getoption(void) return optopt; } -#endif // HAL_OS_POSIX_IO -