Skip to content

Commit

Permalink
Fix __builtin_cpu_is for AIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChipKerchner committed Nov 8, 2023
1 parent 5e31c57 commit 4eecccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/others/dynamic_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ static int cpuid(void)
#ifndef __BUILTIN_CPU_SUPPORTS__
#include <string.h>

#if defined(__has_builtin) && !__has_builtin(__builtin_cpu_is)
#if defined(_AIX) || (defined(__has_builtin) && !__has_builtin(__builtin_cpu_is))
static int __builtin_cpu_is(const char *arg)
{
static int ipinfo = -1;
Expand All @@ -227,7 +227,7 @@ static int __builtin_cpu_is(const char *arg)
}
#endif

#if defined(__has_builtin) && !__has_builtin(__builtin_cpu_supports)
#if defined(_AIX) || (defined(__has_builtin) && !__has_builtin(__builtin_cpu_supports))
static int __builtin_cpu_supports(const char *arg)
{
return 0;
Expand Down

0 comments on commit 4eecccd

Please sign in to comment.