From ef88241d8ec726f7d48b061f355b088fc4bb4bf1 Mon Sep 17 00:00:00 2001 From: bernard Date: Tue, 6 Jun 2017 23:34:33 +0800 Subject: [PATCH] Fix compiling warning for Win32. --- components/drivers/include/drivers/serial.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/drivers/include/drivers/serial.h b/components/drivers/include/drivers/serial.h index ae6ad5c1fe..2abf925854 100644 --- a/components/drivers/include/drivers/serial.h +++ b/components/drivers/include/drivers/serial.h @@ -54,9 +54,13 @@ #define STOP_BITS_3 2 #define STOP_BITS_4 3 +#ifdef _WIN32 +#include +#else #define PARITY_NONE 0 #define PARITY_ODD 1 #define PARITY_EVEN 2 +#endif #define BIT_ORDER_LSB 0 #define BIT_ORDER_MSB 1