aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fullscreen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fullscreen.rs')
-rw-r--r--examples/fullscreen.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs
index cbe0303..011a7d3 100644
--- a/examples/fullscreen.rs
+++ b/examples/fullscreen.rs
@@ -14,6 +14,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() {
// enumerating monitors
let monitor = {