#[cfg(target_os = "windows")]
fn main() {
windows::build!(
Windows::Win32::Media::Multimedia::timeBeginPeriod,
Windows::Win32::Media::Multimedia::timeEndPeriod,
Windows::Win32::System::Threading::SetPriorityClass,
Windows::Win32::System::Threading::GetCurrentProcess,
Windows::Win32::System::SystemServices::timeSetEvent,
Windows::Win32::System::SystemServices::timeKillEvent,
Windows::Win32::System::SystemServices::LPTIMECALLBACK,
Windows::Win32::System::SystemServices::TIME_PERIODIC,
Windows::Win32::System::SystemServices::TIME_CALLBACK_FUNCTION,
Windows::Win32::System::SystemServices::TIME_KILL_SYNCHRONOUS,
Windows::Win32::System::Threading::REALTIME_PRIORITY_CLASS,
Windows::Win32::Media::Multimedia::TIMERR_NOERROR
);
}
#[cfg(target_os = "linux")]
fn main() {
println!("cargo:rustc-link-lib=rt");
}
#[cfg(target_os = "macos")]
fn main() {
println!("cargo:rustc-link-lib=pthread");
}