| 132 | } |
| 133 | |
| 134 | static inline bool IsPlatformCompatible(const char *platform, bool *hadPrimaryMatch) |
| 135 | { |
| 136 | if (DoesPlatformMatch(platform)) |
| 137 | { |
| 138 | #if defined PLATFORM_COMPAT_ALT |
| 139 | *hadPrimaryMatch = true; |
| 140 | #endif |
| 141 | return true; |
| 142 | } |
| 143 | |
| 144 | #if defined PLATFORM_COMPAT_ALT |
| 145 | /* If entry hasn't been found for the primary platform name, check for compatible alternate */ |
| 146 | if (!*hadPrimaryMatch) |
| 147 | return strcmp(platform, PLATFORM_COMPAT_ALT) == 0; |
| 148 | #endif |
| 149 | |
| 150 | return false; |
| 151 | } |
| 152 | |
| 153 | static inline time_t GetFileModTime(const char *path) |
| 154 | { |
no test coverage detected