From e565bfeb1372b885f8cced6a42596b731cb382b2 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sat, 4 Oct 2014 19:17:02 +0200 Subject: Implement headless rendering --- examples/window.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/window.rs') diff --git a/examples/window.rs b/examples/window.rs index b2ad82e..769712a 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -12,6 +12,10 @@ mod support; #[cfg(target_os = "android")] android_start!(main) +#[cfg(not(feature = "window"))] +fn main() { println!("This example requires glutin to be compiled with the `window` feature"); } + +#[cfg(feature = "window")] fn main() { let window = glutin::Window::new().unwrap(); -- cgit v1.2.3