Explorar el Código

acpi: Fix compile error when allocator_api is not enabled

Alex Olson hace 2 años
padre
commit
d8140ca0e6
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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,