Add support for MinGW on Windows

This commit is contained in:
Trinh Hoang Anh 2017-03-19 16:21:27 +08:00
parent 9cd1d1e8d3
commit 9ebc9a7d76

View File

@ -17,6 +17,9 @@
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#ifndef FIONREAD
#include <sys/socket.h>
#endif
// Macros for VT100 codes
#define CLEAR_SCR() printf("\033[2J") // Clear Screen