From 0c8557c5e6bc5d5fb3fabc5e3b87057d89b9032c Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Sat, 1 Jul 2017 20:26:54 +1000 Subject: [PATCH] uart: fix include for win32 --- uart/uart.h | 7 ------- uart/uart_win32.c | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/uart/uart.h b/uart/uart.h index 801c4898..fe75a683 100644 --- a/uart/uart.h +++ b/uart/uart.h @@ -41,13 +41,6 @@ typedef unsigned char byte_t; -// Handle platform specific includes -#ifndef _WIN32 - -#else - #include -#endif - /* serial_port is declared as a void*, which you should cast to whatever type * makes sense to your connection method. Both the posix and win32 * implementations define their own structs in place. diff --git a/uart/uart_win32.c b/uart/uart_win32.c index ecf24772..af521ead 100644 --- a/uart/uart_win32.c +++ b/uart/uart_win32.c @@ -38,9 +38,9 @@ #include "uart.h" -// Test if we are dealing with unix operating systems -#ifdef _WIN32 // The windows serial port implementation +#ifdef _WIN32 +#include typedef struct { HANDLE hPort; // Serial port handle