2018-10-19 Fred Gleason <fredg@paravelsystems.com>

* Removed 'build_win32.bat'.
	* Removed all conditional compilation based on 'WIN32'.
This commit is contained in:
Fred Gleason
2018-10-19 17:03:58 -04:00
parent a127f98758
commit 75bec4d3c4
46 changed files with 49 additions and 568 deletions

View File

@@ -22,12 +22,8 @@
#ifndef RDTTYDEVICE_H
#define RDTTYDEVICE_H
#ifdef WIN32
#include <windows.h>
#else
#include <termios.h>
#include <unistd.h>
#endif // WIN32
#include <queue>
@@ -35,8 +31,6 @@
#include <qsocketnotifier.h>
#include <qtimer.h>
#define WIN32_BUFFER_SIZE 130
class RDTTYDevice : public QIODevice
{
Q_OBJECT;
@@ -94,15 +88,9 @@ class RDTTYDevice : public QIODevice
bool tty_open;
int tty_flags;
QIODevice::OpenMode tty_mode;
#ifdef WIN32
HANDLE tty_fd;
int tty_speed;
int tty_length;
#else
int tty_fd;
speed_t tty_speed;
tcflag_t tty_length;
#endif // WIN32
QSocketNotifier *tty_notifier;
std::queue<char> tty_write_queue;
QTimer *tty_write_timer;