Skip to content

Commit 3ada8fb

Browse files
committed
Merge remote-tracking branch 'origin/develop' into powerFortranAIXMakefiles
2 parents 206e761 + 0a609cc commit 3ada8fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver/others/dynamic_power.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ static int cpuid(void)
202202
#ifndef __BUILTIN_CPU_SUPPORTS__
203203
#include <string.h>
204204

205+
#if defined(_AIX) || (defined(__has_builtin) && !__has_builtin(__builtin_cpu_is))
205206
static int __builtin_cpu_is(const char *arg)
206207
{
207208
static int ipinfo = -1;
@@ -224,12 +225,15 @@ static int __builtin_cpu_is(const char *arg)
224225
}
225226
return 0;
226227
}
228+
#endif
227229

230+
#if defined(_AIX) || (defined(__has_builtin) && !__has_builtin(__builtin_cpu_supports))
228231
static int __builtin_cpu_supports(const char *arg)
229232
{
230233
return 0;
231234
}
232235
#endif
236+
#endif
233237

234238
static gotoblas_t *get_coretype(void) {
235239

0 commit comments

Comments
 (0)