Prechádzať zdrojové kódy

acpi: Fix compile error when allocator_api is not enabled

Alex Olson 2 rokov pred
rodič
commit
d8140ca0e6
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      acpi/src/lib.rs

+ 5 - 1
acpi/src/lib.rs

@@ -73,7 +73,11 @@ pub use crate::platform::{interrupt::InterruptModel, PlatformInfo};
 #[cfg(feature = "allocator_api")]
 pub mod platform;
 
-pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError, mcfg::PciConfigRegions};
+#[cfg(feature = "allocator_api")]
+pub use crate::mcfg::PciConfigRegions;
+
+pub use crate::{fadt::PowerProfile, hpet::HpetInfo, madt::MadtError};
+
 pub use rsdp::{
     handler::{AcpiHandler, PhysicalMapping},
     RsdpError,