mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 14:50:04 -04:00
Remove unused unix dlopen module (#1138)
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
#![cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]
|
|
||||||
#![allow(dead_code)]
|
|
||||||
|
|
||||||
use std::os::raw::{c_char, c_int, c_void};
|
|
||||||
|
|
||||||
pub const RTLD_LAZY: c_int = 0x001;
|
|
||||||
pub const RTLD_NOW: c_int = 0x002;
|
|
||||||
|
|
||||||
#[link(name = "dl")]
|
|
||||||
extern "C" {
|
|
||||||
pub fn dlopen(filename: *const c_char, flag: c_int) -> *mut c_void;
|
|
||||||
pub fn dlerror() -> *mut c_char;
|
|
||||||
pub fn dlsym(handle: *mut c_void, symbol: *const c_char) -> *mut c_void;
|
|
||||||
pub fn dlclose(handle: *mut c_void) -> c_int;
|
|
||||||
}
|
|
||||||
@@ -18,7 +18,6 @@ use crate::{
|
|||||||
window::{CursorIcon, Fullscreen, WindowAttributes},
|
window::{CursorIcon, Fullscreen, WindowAttributes},
|
||||||
};
|
};
|
||||||
|
|
||||||
mod dlopen;
|
|
||||||
pub mod wayland;
|
pub mod wayland;
|
||||||
pub mod x11;
|
pub mod x11;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user