aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-08-12 09:16:08 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-08-12 09:16:08 +0200
commit391c4e525ce1aa77204f9da533042fb8158d891a (patch)
treee8e37b3631c0bffde170695d2ff632b5c6af9eab /src/lib.rs
parent87d62e5b6f38ab34586c0c9b5f41f1558e51cd14 (diff)
downloadglutin-391c4e525ce1aa77204f9da533042fb8158d891a.tar.gz
glutin-391c4e525ce1aa77204f9da533042fb8158d891a.zip
Now using compile_msg crate instead of static_assert
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index aae14e7..fec652a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,6 @@
#![feature(unsafe_destructor)]
#![feature(globs)]
+#![feature(phase)]
#![unstable]
//! The purpose of this library is to provide an OpenGL context on as many
@@ -17,6 +18,7 @@
//! The second way allows you to customize the way your window and GL context
//! will look and behave.
+#[phase(plugin)] extern crate compile_msg;
extern crate libc;
pub use events::*;
@@ -41,8 +43,7 @@ mod osx;
mod events;
#[cfg(not(target_os = "win32"), not(target_os = "linux"), not(target_os = "macos"))]
-#[static_assert]
-static this_platform_is_not_supposed: bool = false;
+compile_error!("Only the `win32`, `linux` and `macos` platforms are supported")
/// Identifier for a monitor.
pub struct MonitorID(winimpl::MonitorID);