From 32eb36c3e8c2add2528514272044de16faed0c8f Mon Sep 17 00:00:00 2001 From: Devin Matthews Date: Thu, 20 Jul 2017 12:54:58 -0500 Subject: [PATCH] Add default #define for __has_extension. --- frame/thread/bli_thrcomm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/thread/bli_thrcomm.c b/frame/thread/bli_thrcomm.c index 5e7f21f42..b50218a77 100644 --- a/frame/thread/bli_thrcomm.c +++ b/frame/thread/bli_thrcomm.c @@ -52,6 +52,10 @@ void* bli_thrcomm_bcast return object; } +#ifndef __has_extension +#define __has_extension(x) 0 +#endif + // Swap out __atomic_* builtins for __sync_* builtins for: // - BG/Q // - gcc <4.7 (including icc through gcc compatibility layer)