2021-04-02 17:51:49 +00:00
|
|
|
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 {
|
2021-04-04 13:52:16 +00:00
|
|
|
// powerpc and other big endian 32-bit archs
|
2021-04-02 17:51:49 +00:00
|
|
|
pub use std::string::String;
|
|
|
|
}
|
|
|
|
}
|