From a2c1baa204dedf324f069c470ac034c9edc898c1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 4 Nov 2021 09:01:16 -0700 Subject: [PATCH] Fix compilation under --all-features compilation. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 2778f2f..ec442ea 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ #[cfg(feature = "std")] pub use std::os::raw as ctypes; -#[cfg(feature = "no_std")] +#[cfg(all(not(feature = "std"), feature = "no_std"))] pub mod ctypes { // The signedness of `char` is platform-specific, however a consequence // of it being platform-specific is that any code which depends on the