Skip to content

Commit

Permalink
Fix C build on Travis
Browse files Browse the repository at this point in the history
Apparently related to
rust-lang/rust-bindgen#528
  • Loading branch information
Patrick Loughney committed May 9, 2018
1 parent 7d6b1d9 commit 802a4f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fn main() {
.file("src/c_gc/gc.c")
.opt_level(3)
.flag("--std=c11")
.compile("c_gc.o");
.compile("c_gc");
}
6 changes: 0 additions & 6 deletions src/c_gc/c_gc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,20 @@ pub struct VM {
pub stackSize: ::std::os::raw::c_int,
}
extern "C" {
#[link_name = "\u{1}_newVM"]
pub fn newVM() -> *mut VM;
}
extern "C" {
#[link_name = "\u{1}_pop"]
pub fn pop(vm: *mut VM) -> *mut Object;
}
extern "C" {
#[link_name = "\u{1}_pushInt"]
pub fn pushInt(vm: *mut VM, intValue: ::std::os::raw::c_int);
}
extern "C" {
#[link_name = "\u{1}_pushPair"]
pub fn pushPair(vm: *mut VM) -> *mut Object;
}
extern "C" {
#[link_name = "\u{1}_freeVM"]
pub fn freeVM(vm: *mut VM);
}
extern "C" {
#[link_name = "\u{1}_gc"]
pub fn gc(vm: *mut VM);
}

0 comments on commit 802a4f9

Please sign in to comment.