sdl2: Only import things under Windows in build.rs

To suppress unused import warnings under Linux.

Former-commit-id: 8730aa1d753861e5179f85ee9c95c66ad0dd62bd
Former-commit-id: 505dc43254fa109cd96feee8de5f6d8e2d30abf3
This commit is contained in:
Tibor Nagy 2020-05-14 11:20:05 +02:00 committed by MishMish
parent 90360fddd2
commit 6161892237

View file

@ -1,4 +1,6 @@
#[cfg(windows)]
use std::env; use std::env;
#[cfg(windows)]
use std::path::PathBuf; use std::path::PathBuf;
#[cfg(windows)] #[cfg(windows)]