Fix for windows

This commit is contained in:
Andrew Pamment 2022-06-26 19:38:12 +10:00
parent 286b508f10
commit 750501c907
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include <stdio.h> #include <stdio.h>
#if defined(_MSC_VER) || defined(WIN32) #if defined(_MSC_VER) || defined(WIN32)
#include <winsock2.h> #include <winsock2.h>
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/select.h> #include <sys/select.h>

View File

@ -4,6 +4,7 @@
#if defined(_MSC_VER) || defined(WIN32) #if defined(_MSC_VER) || defined(WIN32)
#include <winsock2.h> #include <winsock2.h>
#include "MD_AnsiCons.h" #include "MD_AnsiCons.h"
#define STDOUT_FILENO 1
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h> #include <unistd.h>