From 48632619c9e6e8d7a36382285fc505cfc591dd20 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Sun, 3 Aug 2014 10:30:04 +0200 Subject: Add static assert for platform not supported --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3