diff options
| author | bernard <[email protected]> | 2017-06-06 23:34:33 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-06-06 23:34:33 +0800 |
| commit | ef88241d8ec726f7d48b061f355b088fc4bb4bf1 (patch) | |
| tree | b8916bc05e0fc4d4c5ea580d6b8ec5ca388234e3 /components/drivers | |
| parent | 0acf4418362f692b8a72fe5aa8fbf6f51e202d63 (diff) | |
Fix compiling warning for Win32.
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/include/drivers/serial.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <windows.h> +#else #define PARITY_NONE 0 #define PARITY_ODD 1 #define PARITY_EVEN 2 +#endif #define BIT_ORDER_LSB 0 #define BIT_ORDER_MSB 1 |
