fix: accurate cfg attr per gnu and windows
This commit is contained in:
parent
3fe56418ad
commit
80755aab33
1 changed files with 2 additions and 4 deletions
|
|
@ -5,10 +5,8 @@ use whisper_rs_sys::{
|
|||
whisper_gretype_WHISPER_GRETYPE_RULE_REF,
|
||||
};
|
||||
|
||||
|
||||
#[cfg_attr(not(windows), repr(u32))]
|
||||
#[cfg_attr(target_env = "gnu", repr(u32))] // x86_64-pc-windows-gnu
|
||||
#[cfg_attr(all(windows, not(target_env = "gnu")), repr(i32))] // windows being *special* again
|
||||
#[cfg_attr(any(not(windows), target_env = "gnu"), repr(u32))] // include windows-gnu
|
||||
#[cfg_attr(all(windows, not(target_env = "gnu")), repr(i32))] // msvc being *special* again
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum WhisperGrammarElementType {
|
||||
/// End of rule definition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue