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>
19 lines
338 B
C
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
|