a4c7894255
[REASONS]
1. Make OS-dependent code more clear and readable
2. To ease Windows support
[ROCm/clr commit: 4c5c6b4910]