ffi: explicitly declare hello_from_rust for C99 (#343)

pull/344/head
Qingyou Meng 3 years ago committed by GitHub
parent 90993eeac9
commit f6d6126fc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -281,6 +281,8 @@ We'll create a C file to call the `hello_from_rust` function and compile it by `
C file should look like:
```c
extern void hello_from_rust();
int main(void) {
hello_from_rust();
return 0;

Loading…
Cancel
Save