From 57c11ad46ebda68599e2883d723f00f05ab08cce Mon Sep 17 00:00:00 2001 From: ccli8 Date: Thu, 3 May 2018 10:52:09 +0800 Subject: [PATCH] Fix compile error with DirectSerial in serial-less build --- platform/mbed_retarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mbed_retarget.cpp b/platform/mbed_retarget.cpp index d7de8bfa00..433b901182 100644 --- a/platform/mbed_retarget.cpp +++ b/platform/mbed_retarget.cpp @@ -126,7 +126,6 @@ void remove_filehandle(FileHandle *file) { #if DEVICE_SERIAL extern int stdio_uart_inited; extern serial_t stdio_uart; -#endif /* Private FileHandle to implement backwards-compatible functionality of * direct HAL serial access for default stdin/stdout/stderr. @@ -193,6 +192,7 @@ short DirectSerial::poll(short events) const { } return revents; } +#endif class Sink : public FileHandle { public: