diff --git a/src/xlib.rs b/src/xlib.rs index 4bc5cbe..d3ff63a 100644 --- a/src/xlib.rs +++ b/src/xlib.rs @@ -3224,7 +3224,8 @@ pub const LSBFirst: c_int = 0; pub const MSBFirst: c_int = 1; // Reserved resource and constant definitions -//pub const None: c_int = 0; +#[cfg(feature = "none-symbol")] +pub const None: c_int = 0; pub const ParentRelative: c_int = 1; pub const CopyFromParent: c_int = 0; pub const PointerWindow: c_int = 0; diff --git a/x11-dl/Cargo.toml b/x11-dl/Cargo.toml index e9e38e8..c0b93a2 100644 --- a/x11-dl/Cargo.toml +++ b/x11-dl/Cargo.toml @@ -12,6 +12,9 @@ build = "build.rs" documentation = "https://docs.rs/x11-dl" workspace = ".." +[features] +none-symbol = [] + [dependencies] lazy_static = "1" libc = "0.2" diff --git a/x11/Cargo.toml b/x11/Cargo.toml index 83cdd2c..4800da7 100644 --- a/x11/Cargo.toml +++ b/x11/Cargo.toml @@ -15,6 +15,7 @@ workspace = ".." [features] dpms = [] glx = [] +none-symbol = ["xlib"] xcursor = [] xf86vmode = [] xft = []