mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
Merge pull request #352 from SSheldon/stable_rust
Update OSX to compile on stable rust
This commit is contained in:
2
build.rs
2
build.rs
@@ -1,5 +1,3 @@
|
|||||||
#![feature(convert)]
|
|
||||||
|
|
||||||
extern crate gl_generator;
|
extern crate gl_generator;
|
||||||
extern crate khronos_api;
|
extern crate khronos_api;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
#![feature(std_misc)]
|
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate android_glue;
|
extern crate android_glue;
|
||||||
|
|||||||
@@ -719,15 +719,5 @@ impl Clone for IdRef {
|
|||||||
}
|
}
|
||||||
IdRef(self.0)
|
IdRef(self.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn clone_from(&mut self, source: &IdRef) {
|
|
||||||
if source.0 != nil {
|
|
||||||
let _: id = unsafe { msg_send![source.0, retain] };
|
|
||||||
}
|
|
||||||
if self.0 != nil {
|
|
||||||
let _: () = unsafe { msg_send![self.0, release] };
|
|
||||||
}
|
|
||||||
self.0 = source.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user