Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #[cfg(target_os = "windows")]
  2. struct WindowsCode;
  3.  
  4. fn main() {
  5. if cfg!(target_os = "windows") {
  6. println!("windows");
  7. // let wc = WindowsCode{};
  8. } else {
  9. println!("not windows");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement