I need to detect if the target is either Posix or Win32 based. I've googled and didn't find anything! Any idea?
Looked here: Conditional compilation - The Rust Reference
I need to detect if the target is either Posix or Win32 based. I've googled and didn't find anything! Any idea?
Looked here: Conditional compilation - The Rust Reference
Considering Win32 is only used by Windows, #[cfg(target_os = "windows")]
should be enough.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.