Skip to content

Commit 22098d1

Browse files
committed
update bindgen and use new bindings
1 parent 9f87312 commit 22098d1

File tree

4 files changed

+267
-247
lines changed

4 files changed

+267
-247
lines changed

sdl2-sys/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ fn generate_bindings(target: &str, host: &str, headers_paths: &[String]) {
657657
let mut bindings = bindgen::Builder::default()
658658
// enable no_std-friendly output by only using core definitions
659659
.use_core()
660+
.constified_enum("SDL_RendererFlip")
661+
.constified_enum("SDL_Keymod")
660662
.default_enum_style(bindgen::EnumVariation::Rust {
661663
non_exhaustive: false,
662664
})

0 commit comments

Comments
 (0)