[Flang] Exclude the reference to TIME_UTC for AIX. (#99069)

This PR supersede PR #98915
This commit is contained in:
Daniel Chen 2024-07-17 08:11:02 -04:00 committed by GitHub
parent bc8a8f5415
commit fa0e529959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,6 +139,7 @@ count_t ConvertTimeSpecToCount(int kind, const struct timespec &tspec) {
}
}
#ifndef _AIX
// This is the fallback implementation, which should work everywhere.
template <typename Unused = void>
count_t GetSystemClockCount(int kind, fallback_implementation) {
@ -153,6 +154,7 @@ count_t GetSystemClockCount(int kind, fallback_implementation) {
// with the requested kind at the call site.
return ConvertTimeSpecToCount(kind, tspec);
}
#endif
template <typename Unused = void>
count_t GetSystemClockCountRate(int kind, fallback_implementation) {