Skip to content
Browse files

ensure that RtlGetVersion has stdcall convention

This resolves a downstream linker problem in the rust ssh2 crate
  • Loading branch information...
wez committed Sep 15, 2019
1 parent 76ac87e commit 85ebd53f59def688703497ebe63dcf489b9aae71
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/wincng.c
@@ -2136,6 +2136,14 @@ _libssh2_wincng_bignum_free(_libssh2_bn *bn)

/* We provide our own prototype for this function as the availability
* of the header that is documented to provide it is patchy across
* the various environments that the libssh2 CI builds on, and
* because the stdcall convention is important for the linker to
* be able to resolve the function in 32-bit MSVC compiler
* environments. */
extern NTSTATUS __stdcall RtlGetVersion(OSVERSIONINFOW*);

static int is_windows_10_or_later(void)

0 comments on commit 85ebd53

Please sign in to comment.
You can’t perform that action at this time.