Files
dat-thang/inc/dat_socket.h
T
divorce b735900f2e 0.0.002
ddat interop with dat js
cable interop with cabal js
ddat's frontend = dat-thang
cable fe = cable-thang
dillo support based on cel's dillo-dat
bootstrap node
xplatform support

Signed-off-by: divo <418@cryspace.space>
2026-10-19 00:17:02 -04:00

19 lines
338 B
C

#ifndef DAT_SOCKET_H
#define DAT_SOCKET_H
#ifdef _WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
typedef SOCKET dat_socket_t;
#define DAT_INVALID_SOCKET INVALID_SOCKET
#else
#include <sys/socket.h>
typedef int dat_socket_t;
#define DAT_INVALID_SOCKET (-1)
#endif
#endif