diff options
author | Martin Willi <martin@revosec.ch> | 2014-06-05 13:10:43 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-06 16:28:28 +0200 |
commit | cab59c73fc616c23bf510dd875363da08ce1850c (patch) | |
tree | 1fff8a93e0451fb8ef6a17de09a4e264559d3e62 /src/libstrongswan/utils/windows.h | |
parent | bd19e27ae3295f224bf568d0b7d625a5c6bae8b8 (diff) | |
download | strongswan-cab59c73fc616c23bf510dd875363da08ce1850c.tar.bz2 strongswan-cab59c73fc616c23bf510dd875363da08ce1850c.tar.xz |
windows: Use WINAPI call convention for Windows API callbacks
For x86_64 it does not actually matter, but for i686 builds the call convention
is different with WINAPI.
Diffstat (limited to 'src/libstrongswan/utils/windows.h')
-rw-r--r-- | src/libstrongswan/utils/windows.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/windows.h b/src/libstrongswan/utils/windows.h index b66138644..fd4338455 100644 --- a/src/libstrongswan/utils/windows.h +++ b/src/libstrongswan/utils/windows.h @@ -116,14 +116,14 @@ char* strndup(const char *s, size_t n); * Provided via ws2_32 */ #ifndef InetNtop -const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); +const char WINAPI *inet_ntop(int af, const void *src, char *dst, socklen_t size); #endif /** * Provided via ws2_32 */ #ifndef InetPton -int inet_pton(int af, const char *src, void *dst); +int WINAPI inet_pton(int af, const char *src, void *dst); #endif /** |