mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Now using compile_msg crate instead of static_assert
This commit is contained in:
parent
87d62e5b6f
commit
391c4e525c
|
@ -4,5 +4,8 @@ name = "gl-init-rs"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
|
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
|
||||||
|
|
||||||
|
[dependencies.compile_msg]
|
||||||
|
git = "https://github.com/huonw/compile_msg"
|
||||||
|
|
||||||
[dev-dependencies.gl]
|
[dev-dependencies.gl]
|
||||||
git = "https://github.com/bjz/gl-rs"
|
git = "https://github.com/bjz/gl-rs"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#![feature(unsafe_destructor)]
|
#![feature(unsafe_destructor)]
|
||||||
#![feature(globs)]
|
#![feature(globs)]
|
||||||
|
#![feature(phase)]
|
||||||
#![unstable]
|
#![unstable]
|
||||||
|
|
||||||
//! The purpose of this library is to provide an OpenGL context on as many
|
//! 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
|
//! The second way allows you to customize the way your window and GL context
|
||||||
//! will look and behave.
|
//! will look and behave.
|
||||||
|
|
||||||
|
#[phase(plugin)] extern crate compile_msg;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
pub use events::*;
|
pub use events::*;
|
||||||
|
@ -41,8 +43,7 @@ mod osx;
|
||||||
mod events;
|
mod events;
|
||||||
|
|
||||||
#[cfg(not(target_os = "win32"), not(target_os = "linux"), not(target_os = "macos"))]
|
#[cfg(not(target_os = "win32"), not(target_os = "linux"), not(target_os = "macos"))]
|
||||||
#[static_assert]
|
compile_error!("Only the `win32`, `linux` and `macos` platforms are supported")
|
||||||
static this_platform_is_not_supposed: bool = false;
|
|
||||||
|
|
||||||
/// Identifier for a monitor.
|
/// Identifier for a monitor.
|
||||||
pub struct MonitorID(winimpl::MonitorID);
|
pub struct MonitorID(winimpl::MonitorID);
|
||||||
|
|
|
@ -6,6 +6,8 @@ pub struct Window;
|
||||||
|
|
||||||
pub struct MonitorID;
|
pub struct MonitorID;
|
||||||
|
|
||||||
|
compile_warning!("The OS/X platform is not implemented yet")
|
||||||
|
|
||||||
pub fn get_available_monitors() -> Vec<MonitorID> {
|
pub fn get_available_monitors() -> Vec<MonitorID> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue