aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fullscreen.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fullscreen.rs')
-rw-r--r--examples/fullscreen.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs
index 6658342..f0aab47 100644
--- a/examples/fullscreen.rs
+++ b/examples/fullscreen.rs
@@ -1,9 +1,18 @@
+#![feature(phase)]
+
+#[cfg(target_os = "android")]
+#[phase(plugin, link)]
+extern crate android_glue;
+
extern crate gl;
extern crate gl_init;
extern crate libc;
use std::io::stdio::stdin;
+#[cfg(target_os = "android")]
+android_start!(main)
+
fn main() {
// enumerating monitors
let monitor = {