mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Don't use CPUID call on targets that don't support it
This commit is contained in:
11
cmake/check_cpuid.cpp
Normal file
11
cmake/check_cpuid.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#if defined(_MSC_VER) || ((defined(_WIN32) || defined(_WIN64)) && defined(__INTEL_COMPILER))
|
||||
# include <intrin.h>
|
||||
#elif defined(__GNUC__)
|
||||
# include <cpuid.h>
|
||||
#endif
|
||||
|
||||
/* Just needed to look for the headers -- this just makes the compiler happy. */
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user