summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-07 16:35:20 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-07 18:24:24 +0200
commitc0308304ad20cd702231572eba3dedb293bdc103 (patch)
tree0b1344e7adf4004c61008b3fe485b42b765db3c6 /openpgp-ffi/tests
parent83a109af5039cb764aa9b7ffddc14bafd3d42dca (diff)
openpgp-ffi, ffi: Fix calling convention on Windows.
- Use `extern "C"` instead of `extern "system"`. The latter selects stdcall, which is only appropriate for talking to the Windows API.
Diffstat (limited to 'openpgp-ffi/tests')
-rw-r--r--openpgp-ffi/tests/c-tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/tests/c-tests.rs b/openpgp-ffi/tests/c-tests.rs
index 050198f5..b14ecadb 100644
--- a/openpgp-ffi/tests/c-tests.rs
+++ b/openpgp-ffi/tests/c-tests.rs
@@ -114,7 +114,7 @@ fn for_all_rs<F>(src: &Path, mut fun: F)
/// If this looks like an exported function, returns its name.
fn exported_function_name(line: &str) -> Option<&str> {
- if line.starts_with("pub extern \"system\" fn ")
+ if line.starts_with("pub extern \"C\" fn ")
|| line.starts_with("fn pgp_")
{
let fn_i = line.find("fn ")?;