Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
305f437f
Commit
305f437f
authored
1 month ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
c: use appropriate includes for Windows
parent
701e8c89
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
c/opendht_c.h
+11
-2
11 additions, 2 deletions
c/opendht_c.h
with
11 additions
and
2 deletions
c/opendht_c.h
+
11
−
2
View file @
305f437f
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment