Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28d4f9f

Browse files
author
Felipe Zimmerle
committed
iis: Checks Win version before declare inet_pton
Checking for `!(NTDDI_VERSION >= NTDDI_VISTA)` to decide whenever or notto declare the inet_pton function.
1 parentbd0980f commit28d4f9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎apache2/msc_util.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) {
836836
}
837837

838838
#ifdefWIN32
839+
#if !(NTDDI_VERSION >=NTDDI_VISTA)
839840
intinet_pton(intfamily,constchar*src,void*dst) {
840841
structaddrinfoaddr;
841842
structsockaddr_in*in=NULL;
@@ -875,6 +876,7 @@ int inet_pton(int family, const char *src, void *dst) {
875876
return-1;
876877
}
877878
#endif
879+
#endif
878880

879881
/**
880882
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp