We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afffd5b + 1136074 commit 850e1cfCopy full SHA for 850e1cf
src/std_misc/ffi.md
@@ -8,6 +8,16 @@ attribute containing the name of the foreign library.
8
use std::fmt;
9
10
// this extern block links to the libm library
11
+#[cfg(target_family = "windows")]
12
+#[link(name = "msvcrt")]
13
+extern {
14
+ // this is a foreign function
15
+ // that computes the square root of a single precision complex number
16
+ fn csqrtf(z: Complex) -> Complex;
17
+
18
+ fn ccosf(z: Complex) -> Complex;
19
+}
20
+#[cfg(target_family = "unix")]
21
#[link(name = "m")]
22
extern {
23
// this is a foreign function
0 commit comments