Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
bcbfff2d
Commit
bcbfff2d
authored
May 16, 2022
by
Rob Swindell
💬
Browse files
Apparently MinGW32 doesn't have inet_ntop() or inet_pton() either
parent
8c95808d
Pipeline
#3036
passed with stage
in 9 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/xpdev/ini_file.c
src/xpdev/ini_file.c
+2
-2
No files found.
src/xpdev/ini_file.c
View file @
bcbfff2d
...
...
@@ -720,7 +720,7 @@ char* iniSetIpAddress(str_list_t* list, const char* section, const char* key, ui
struct
in_addr
in_addr
;
in_addr
.
s_addr
=
htonl
(
value
);
return
iniSetString
(
list
,
section
,
key
,
#ifdef
__BORLANDC__
#if
def
ined(
__BORLANDC__
) || defined(__MINGW32__)
inet_ntoa
(
in_addr
),
// deprecated function call
#else
inet_ntop
(
AF_INET
,
&
in_addr
,
buf
,
sizeof
(
buf
)),
...
...
@@ -1644,7 +1644,7 @@ static uint32_t parseIpAddress(const char* value)
if
(
strchr
(
value
,
'.'
)
==
NULL
)
return
(
strtol
(
value
,
NULL
,
0
));
#ifdef
__BORLANDC__
#if
def
ined(
__BORLANDC__
) || defined(__MINGW32__)
result
=
inet_addr
(
value
);
// deprecated function call
#else
inet_pton
(
AF_INET
,
value
,
&
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment