mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-30 23:05:48 +00:00
[MSVC] Replace #warning with compatible directives for MSVC
This commit is contained in:
parent
391b168a49
commit
a7d5f29ace
1 changed files with 6 additions and 2 deletions
|
@ -1458,8 +1458,12 @@ int cpuid_get_raw_data_core(struct cpu_raw_data_t* data, logical_cpu_t logical_c
|
||||||
return cpuid_set_error(ERR_NO_CPUID);
|
return cpuid_set_error(ERR_NO_CPUID);
|
||||||
# endif /* PLATFORM_AARCH64 */
|
# endif /* PLATFORM_AARCH64 */
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma message("Warning: This CPU architecture is not supported by libcpuid")
|
||||||
#else
|
#else
|
||||||
#warning This CPU architecture is not supported by libcpuid
|
#warning This CPU architecture is not supported by libcpuid
|
||||||
|
#endif
|
||||||
UNUSED(data);
|
UNUSED(data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue