Commit 03e38b50 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: assume the OS support what the processor supports

We cannot use SIGILL, so we have to trust CPUID.
Maybe there is a Win32 API to query the kernel support?
parent 51f8337e
......@@ -70,7 +70,7 @@ static bool check_OS_capability( const char *psz_capability, pid_t pid )
return false;
}
# define check_capability(name, flag, code) \
# define check_capability(name, flag, code) \
do { \
pid_t pid = fork(); \
if( pid == 0 ) \
......@@ -84,7 +84,10 @@ static bool check_OS_capability( const char *psz_capability, pid_t pid )
} while(0)
# else /* WIN32 */
# define check_capability(name, flag, code) (void)0
# define check_capability(name, flag, code) \
do { \
i_capabilities |= (flag); \
} while(0)
# endif
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment