Fix windows build

This commit is contained in:
Niko 2023-11-16 20:34:25 -07:00
parent 4ea2484d91
commit bd197a36f3
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B

View file

@ -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