Allow Windows compilation.

This commit is contained in:
Jonathan Naylor 2020-06-27 22:58:37 +01:00
parent 97f1ebb25f
commit 648426f44c

View file

@ -19,7 +19,11 @@
#ifndef AX25Network_H
#define AX25Network_H
#if defined(_WIN32) || defined(_WIN64)
#include "SerialController.h"
#else
#include "PseudoTTYController.h"
#endif
#include <cstdint>
#include <string>
@ -42,7 +46,11 @@ public:
void close();
private:
#if defined(_WIN32) || defined(_WIN64)
CSerialController m_serial;
#else
CPseudoTTYController m_serial;
#endif
unsigned char* m_txData;
unsigned char* m_rxData;
unsigned int m_rxLength;