diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-10-04 20:19:04 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-10-04 20:19:04 +0200 |
commit | 760f9d5fc5e7349c94b14da38e146301a9c671de (patch) | |
tree | f83aef04f7fbd1585ed0a29070f0fcc3dc0d65f4 /examples/window.rs | |
parent | df10bbd1632cfd29429270734da485d295e6b888 (diff) | |
parent | 2b35a6c9d1a1e2f748b887947b16ce67d05207c2 (diff) | |
download | glutin-760f9d5fc5e7349c94b14da38e146301a9c671de.tar.gz glutin-760f9d5fc5e7349c94b14da38e146301a9c671de.zip |
Merge pull request #630 from tomaka/fix-examples
Fix the examples
Diffstat (limited to 'examples/window.rs')
-rw-r--r-- | examples/window.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/window.rs b/examples/window.rs index 8f378f0..ddf98a9 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -9,15 +9,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 resize_callback(width: u32, height: u32) { println!("Window resized to {}x{}", width, height); } -#[cfg(feature = "window")] fn main() { let mut window = glutin::WindowBuilder::new().build().unwrap(); window.set_title("A fantastic window!"); |