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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user