From patchwork Wed Jun 5 13:43:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1110495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-102460-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="pXvMoSYW"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45JqkQ039Hz9sPB for ; Wed, 5 Jun 2019 23:43:25 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=eHN8S+lrEGhAmH0EJLraUNoxOILIx h8JAf/zXfTzvARCTlkNSujs6fPxGHXEFUCSEw+B2c+/HGVQZ2IOKixfboWrNHwdV TzVWwh/aMsqaPjDDDSFO2SuvRbV9prDYfZ0e0IU+WOsa3CQYIEQ1BawmzUTmlZwQ BbH2JxerJxbEZU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=MShxN1PZZQJHBIEwOlRwD/7VbTM=; b=pXv MoSYWDI2EUaEnrIiTq5Z6i0zKlzvDsHAKUwNvNpgxTZ/5ElDgnUrrspaF2iIH3vP wSemBfpun1NEi2rnhLOxTmkm7nkVHSAnDmDucxOgQI9N0XtpXj2tb8TyvWX5gyGA yrOoMISROPaIDjHutbToeXeYbqqktNPot2NZNVm4= Received: (qmail 98283 invoked by alias); 5 Jun 2019 13:43:20 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 98275 invoked by uid 89); 5 Jun 2019 13:43:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] : Add __glibc_has_include macro Date: Wed, 05 Jun 2019 15:43:16 +0200 Message-ID: <87sgsouozv.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 2019-06-05 Florian Weimer * misc/sys/cdefs.h (__glibc_has_include): Define. diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index b1695376dc..638872b87b 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -412,6 +412,12 @@ # define __glibc_has_attribute(attr) 0 #endif +#ifdef __has_include +# define __glibc_has_include(header) __has_include (header) +#else +# define __glibc_has_include(header) 0 +#endif + #if (!defined _Noreturn \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && !__GNUC_PREREQ (4,7))