Skip to content
Snippets Groups Projects
Commit 305f437f authored by Adrien Béraud's avatar Adrien Béraud
Browse files

c: use appropriate includes for Windows

parent 701e8c89
Branches
Tags
No related merge requests found
...@@ -23,12 +23,21 @@ extern "C" { ...@@ -23,12 +23,21 @@ extern "C" {
#endif #endif
#include <opendht/def.h> #include <opendht/def.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
typedef uint16_t sa_family_t;
typedef uint16_t in_port_t;
#else
#include <sys/socket.h>
#include <netinet/in.h>
#endif
// Non-owning data view // Non-owning data view
struct OPENDHT_C_PUBLIC dht_data_view { struct OPENDHT_C_PUBLIC dht_data_view {
const uint8_t* data; const uint8_t* data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment