12 lines
227 B
Rust
12 lines
227 B
Rust
|
use cfg_if::cfg_if;
|
||
|
|
||
|
cfg_if! {
|
||
|
if #[cfg(not(all(target_endian = "big", target_pointer_width = "32")))] {
|
||
|
// most architectures
|
||
|
pub use smartstring::alias::String;
|
||
|
} else {
|
||
|
// powerpc
|
||
|
pub use std::string::String;
|
||
|
}
|
||
|
}
|