Skip to content

Commit

Permalink
[MSVC] Replace #warning with compatible directives for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankXie05 authored and TheTumultuousUnicornOfDarkness committed Nov 26, 2024
1 parent 391b168 commit a7d5f29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libcpuid/cpuid_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a7d5f29

Please sign in to comment.