Skip to content

Commit e417938

Browse files
committed
Prevent warning in sdl2-sys/build.rs
1 parent 315082a commit e417938

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdl2-sys/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const SDL2_HEADERS_BUNDLED_VERSION: &str = "2.0.8";
2424

2525
// means the lastest stable version that can be downloaded from SDL2's source
2626
const LASTEST_SDL2_VERSION: &str = "2.0.8";
27-
27+
28+
#[cfg(feature = "bindgen")]
2829
macro_rules! add_msvc_includes_to_bindings {
2930
($bindings:expr) => {
3031
$bindings = $bindings.clang_arg(format!("-IC:/Program Files (x86)/Windows Kits/8.1/Include/shared"));

0 commit comments

Comments
 (0)