Skip to content

Commit f6d6126

Browse files
authored
ffi: explicitly declare hello_from_rust for C99 (#343)
1 parent 90993ee commit f6d6126

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ffi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ We'll create a C file to call the `hello_from_rust` function and compile it by `
281281
C file should look like:
282282

283283
```c
284+
extern void hello_from_rust();
285+
284286
int main(void) {
285287
hello_from_rust();
286288
return 0;

0 commit comments

Comments
 (0)