mirror of https://github.com/oxen-io/lokinet
i hate windows
This commit is contained in:
parent
8bac293dc7
commit
9b99752276
|
@ -2,6 +2,16 @@
|
|||
#define LLARP_H_
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifdef _MSC_VER
|
||||
#include <BaseTsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
#else
|
||||
#define ssize_t long
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
|
|
|
@ -10,12 +10,14 @@
|
|||
#include <ws2tcpip.h>
|
||||
#include <wspiapi.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#ifdef _MSC_VER
|
||||
#include <BaseTsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
#else
|
||||
#define ssize_t long
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
|
|
Loading…
Reference in New Issue