mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
249 B
C
27 lines
249 B
C
3 years ago
|
#pragma once
|
||
|
|
||
|
/// OS specific types
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
|
||
|
#else
|
||
|
#include <sys/uio.h>
|
||
|
#include <poll.h>
|
||
|
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
typedef HANDLE OS_FD_t;
|
||
|
#else
|
||
|
typedef int OS_FD_t;
|
||
|
#endif
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|