Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Nov 17, 2023
1 parent 4ea2484 commit bd197a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/whisper_grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use whisper_rs_sys::{
whisper_gretype_WHISPER_GRETYPE_RULE_REF,
};

#[repr(u32)]
#[cfg_attr(not(windows), repr(u32))]
#[cfg_attr(windows, repr(i32))] // windows being *special* again
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum WhisperGrammarElementType {
/// End of rule definition
Expand Down

0 comments on commit bd197a3

Please sign in to comment.