From 6161892237ac840afd0f4e040ba45583e1a8bc03 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Thu, 14 May 2020 11:20:05 +0200 Subject: [PATCH] sdl2: Only import things under Windows in build.rs To suppress unused import warnings under Linux. Former-commit-id: 8730aa1d753861e5179f85ee9c95c66ad0dd62bd Former-commit-id: 505dc43254fa109cd96feee8de5f6d8e2d30abf3 --- platform/rustboyadvance-sdl2/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/rustboyadvance-sdl2/build.rs b/platform/rustboyadvance-sdl2/build.rs index 3adf4ad..b5f9575 100644 --- a/platform/rustboyadvance-sdl2/build.rs +++ b/platform/rustboyadvance-sdl2/build.rs @@ -1,4 +1,6 @@ +#[cfg(windows)] use std::env; +#[cfg(windows)] use std::path::PathBuf; #[cfg(windows)]