Fix windows compilation

This commit is contained in:
Gary Guo 2022-10-23 21:30:37 +01:00
parent 4e6d60c837
commit c9cca33e85

View File

@ -1,6 +1,7 @@
#![feature(c_unwind)]
#[link(name = "bar")]
#[cfg_attr(not(windows), link(name = "bar"))]
#[cfg_attr(windows, link(name = "bar.dll"))]
extern "C-unwind" {
fn panic();
}