1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-07 11:03:04 +00:00

Port net code to windows.

Use winsock2 and WSAPoll. Not the most high performance
solution but should work well.
This commit is contained in:
Calvin Rose
2020-04-18 19:14:38 -04:00
parent 0745c15d7b
commit 4a693222b4
4 changed files with 145 additions and 11 deletions

View File

@@ -29,6 +29,10 @@
#define _POSIX_C_SOURCE 200112L
#endif
#if defined(WIN32) || defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#endif
/* Needed for realpath on linux */
#if !defined(_XOPEN_SOURCE) && (defined(__linux__) || defined(__EMSCRIPTEN__))
#define _XOPEN_SOURCE 500