aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-12-05 15:47:29 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-12-05 15:47:29 +0100
commit2320c2bc974fcc655553e678c457230f3e97de68 (patch)
treedf1d88d82f92d896c636fbd14d700705d96b50a8
parentab387dc2a3cac7e88688d2b16e758680eb3729d1 (diff)
parentffba8564c8edac6be0f648e625e4df32e48e2caa (diff)
downloadglutin-2320c2bc974fcc655553e678c457230f3e97de68.tar.gz
glutin-2320c2bc974fcc655553e678c457230f3e97de68.zip
Merge pull request #156 from tomaka/remove-compile-msg
Remove the dependency to compile_msg
-rw-r--r--Cargo.toml3
-rw-r--r--src/lib.rs7
2 files changed, 3 insertions, 7 deletions
diff --git a/Cargo.toml b/Cargo.toml
index fc2be6f..c578d5e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,9 +14,6 @@ default = ["window"]
window = []
headless = []
-[dependencies.compile_msg]
-git = "https://github.com/huonw/compile_msg"
-
[dependencies.gl_generator]
git = "https://github.com/bjz/gl-rs"
diff --git a/src/lib.rs b/src/lib.rs
index 53b540b..b27ef97 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -30,7 +30,6 @@
//!
//! By default only `window` is enabled.
-#[phase(plugin)] extern crate compile_msg;
#[phase(plugin)] extern crate gl_generator;
extern crate gl_common;
@@ -49,6 +48,9 @@ pub use events::*;
use std::default::Default;
+#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
+use this_platform_is_not_supported;
+
#[cfg(target_os = "windows")]
#[path="win32/mod.rs"]
mod winimpl;
@@ -64,9 +66,6 @@ mod winimpl;
mod events;
-#[cfg(all(not(target_os = "windows"), not(target_os = "linux"), not(target_os = "macos"), not(target_os = "android")))]
-compile_error!("Only the `windows`, `linux` and `macos` platforms are supported")
-
/// Identifier for a monitor.
#[cfg(feature = "window")]
pub struct MonitorID(winimpl::MonitorID);