RetroBASIC
RetroBASIC copied to clipboard
Support for Visual Studio (sloppy version)
This is a very sloppy version of the visual studio support. I'm linking two external libraries for support, unfortunately one needs to be patched, you'll need to move the following lines:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#ifdef _MSC_VER
#pragma comment(lib, "Ws2_32.lib")
#endif
from termiWin.h to termiWin.c
then, in termiWin.h, add the declaration for HANDLE:
typedef void* HANDLE;
and lastly modify the select_serial declaration to:
int select_serial(int nfds, struct fd_set *readfds, struct fd_set *writefds, struct fd_set *exceptfds, struct timeval *timeout);