Rework __GLIBC_PREREQ checks to avoid breaking non-glibc builds
@@ -155,7 +155,6 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef DYNAMIC_ARCH
gotoblas_t *gotoblas = NULL;
#endif
-
extern void openblas_warning(int verbose, const char * msg);
#ifndef SMP
@@ -187,7 +186,7 @@ int i,n;
#if !defined(__GLIBC_PREREQ)
return nums;
-#endif
+#else
#if !__GLIBC_PREREQ(2, 3)
return nums;
#endif
@@ -204,8 +203,7 @@ int i,n;
nums = CPU_COUNT(sizeof(cpu_set_t),cpusetp);
#endif
return nums;
-#endif
-
+ #else
cpusetp = CPU_ALLOC(nums);
if (cpusetp == NULL) return nums;
size = CPU_ALLOC_SIZE(nums);
@@ -214,6 +212,8 @@ int i,n;
nums = CPU_COUNT_S(size,cpusetp);
CPU_FREE(cpusetp);
return nums;
+ #endif
+#endif
}
#endif
#endif
