Skip to content

Commit

Permalink
Fixing compilation issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aalykiot committed Apr 9, 2024
1 parent 3623f45 commit 8d20384
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ use dune_event_loop::LoopHandle;
use dune_event_loop::Signal;
use std::rc::Rc;

#[cfg(windows)]
const SIGNALS: [(&str, i32); 6] = [
("SIGABRT", Signal::SIGABRT),
("SIGFPE", Signal::SIGFPE),
("SIGILL", Signal::SIGILL),
("SIGINT", Signal::SIGINT),
("SIGSEGV", Signal::SIGSEGV),
("SIGTERM", Signal::SIGTERM),
];

#[cfg(not(windows))]
const SIGNALS: [(&str, i32); 29] = [
("SIGABRT", Signal::SIGABRT),
("SIGALRM", Signal::SIGALRM),
Expand Down

0 comments on commit 8d20384

Please sign in to comment.