RetroBASIC icon indicating copy to clipboard operation
RetroBASIC copied to clipboard

Support for Visual Studio (sloppy version)

Open pansk opened this issue 10 months ago • 2 comments

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);

pansk avatar Dec 13 '24 23:12 pansk