1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-07-02 14:04:15 +00:00

[MSVC] Replace #warning with compatible directives for MSVC

This commit is contained in:
FrankXie 2024-11-15 07:31:20 +00:00
parent eaa37ce5b6
commit a38d564428

View file

@ -1459,8 +1459,12 @@ int cpuid_get_raw_data_core(struct cpu_raw_data_t* data, logical_cpu_t logical_c
# endif /* PLATFORM_AARCH64 */
}
#else
# warning This CPU architecture is not supported by libcpuid
UNUSED(data);
#if defined(_MSC_VER)
#pragma message("Warning: This CPU architecture is not supported by libcpuid")
#else
#warning This CPU architecture is not supported by libcpuid
#endif
UNUSED(data);
#endif
if (affinity_saved)