aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-08-03 10:30:04 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-08-03 10:30:04 +0200
commit48632619c9e6e8d7a36382285fc505cfc591dd20 (patch)
tree5d78a6db7734dcebec5dbc81ee61cfca8a92514b /src
parentf4fb699b5242d13482a3c1931e71a52c79a7e535 (diff)
downloadglutin-48632619c9e6e8d7a36382285fc505cfc591dd20.tar.gz
glutin-48632619c9e6e8d7a36382285fc505cfc591dd20.zip
Add static assert for platform not supported
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 914dedc..ee79fd9 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -38,6 +38,10 @@ 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;
+
/// Identifier for a monitor.
pub struct MonitorID(winimpl::MonitorID);