[flang][MSVC] Fix building with `/permissive-` flag
authorMehdi Chinoune <mehdi.chinoune@hotmail.com>
Mon, 23 May 2022 21:25:41 +0000 (16:25 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Wed, 25 May 2022 04:36:04 +0000 (23:36 -0500)
commit360411957b6f40f50b35097b7abedd91250f2434
treed0bf45fc41a1124738ef4743ca5c7f71c4ab41d9
parentfd937366579e68e4413cda13b1b78a74b234be81
[flang][MSVC] Fix building with `/permissive-` flag

CLOCK_REALTIME is POSIX defined and never available with MSVC, even without /permissive-.
The difference is that the template is never instantiated and the compiler ignores the undefined identifier.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D125262
flang/runtime/time-intrinsic.cpp