uart: fix include for win32

This commit is contained in:
Michael Farrell 2017-07-01 20:26:54 +10:00
commit 0c8557c5e6
2 changed files with 2 additions and 9 deletions

View file

@ -41,13 +41,6 @@
typedef unsigned char byte_t;
// Handle platform specific includes
#ifndef _WIN32
#else
#include <windows.h>
#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.

View file

@ -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 <windows.h>
typedef struct {
HANDLE hPort; // Serial port handle