std: win: Disable stack overflow handling on UWP

The required functions are not available, so hope for the best
This commit is contained in:
Hugo Beauzée-Luyssen
2019-05-27 17:16:20 +02:00
parent 668f0d3495
commit e88a4cee52
3 changed files with 45 additions and 29 deletions

View File

@@ -33,16 +33,18 @@ pub mod pipe;
pub mod process;
pub mod rand;
pub mod rwlock;
pub mod stack_overflow;
pub mod thread;
pub mod thread_local;
pub mod time;
cfg_if::cfg_if! {
if #[cfg(not(target_vendor = "uwp"))] {
pub mod stdio;
pub mod stack_overflow;
} else {
pub mod stdio_uwp;
pub mod stack_overflow_uwp;
pub use self::stdio_uwp as stdio;
pub use self::stack_overflow_uwp as stack_overflow;
}
}