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