Ticket #58263: patch-openblas-cpuid-fallback-on-less-than-SL.diff

File patch-openblas-cpuid-fallback-on-less-than-SL.diff, 507 bytes (added by kencu (Ken), 6 years ago)
  • cpuid_x86.c

    diff --git cpuid_x86.c cpuid_x86.c
    index eb986b6..63c5270 100644
    void cpuid_count(int op, int count, int *eax, int *ebx, int *ecx, int *edx) 
    8787
    8888#ifndef CPUIDEMU
    8989
    90 #if defined(__APPLE__) && defined(__i386__)
     90#if defined(__APPLE__) && defined(__i386__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
    9191void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx);
    9292void cpuid_count(int op, int count, int *eax, int *ebx, int *ecx, int *edx);
    9393#else