mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -07:00
uart: fix include for win32
This commit is contained in:
parent
61caa4456b
commit
0c8557c5e6
2 changed files with 2 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue