Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fc10ba8f
Commit
fc10ba8f
authored
Mar 31, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add a stub implementation of gai_strerror{A,W}.
parent
b4ee082d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
ws2tcpip.h
include/ws2tcpip.h
+32
-0
No files found.
include/ws2tcpip.h
View file @
fc10ba8f
...
...
@@ -112,6 +112,38 @@ typedef ADDRINFOA ADDRINFO, *LPADDRINFO;
extern
"C"
{
#endif
#define GAI_STRERROR_BUFFER_SIZE 1024
static
inline
char
*
gai_strerrorA
(
int
errcode
)
{
static
char
buffer
[
GAI_STRERROR_BUFFER_SIZE
+
1
];
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer
[
0
]
=
'\0'
;
return
buffer
;
}
static
inline
WCHAR
*
gai_strerrorW
(
int
errcode
)
{
static
WCHAR
buffer
[
GAI_STRERROR_BUFFER_SIZE
+
1
];
/* FIXME: should format message from system, ignoring inserts in neutral
* language */
buffer
[
0
]
=
'\0'
;
return
buffer
;
}
#ifdef USE_WS_PREFIX
# define WS_gai_strerror WINELIB_NAME_AW(gai_strerror)
#elif defined(WINE_NO_UNICODE_MACROS)
# define gai_strerror gai_strerrorA
#else
# define gai_strerror WINELIB_NAME_AW(gai_strerror)
#endif
void
WINAPI
WS
(
freeaddrinfo
)(
LPADDRINFO
);
#define FreeAddrInfoA WS(freeaddrinfo)
void
WINAPI
FreeAddrInfoW
(
PADDRINFOW
);
...
...
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