From patchwork Wed Jun 12 16:01:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 33095 Received: (qmail 29834 invoked by alias); 12 Jun 2019 16:01:08 -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 29821 invoked by uid 89); 12 Jun 2019 16:01:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.0 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=HX-Languages-Length:746 X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] : Inhibit macro expansion for __glibc_has_include Date: Wed, 12 Jun 2019 18:01:04 +0200 Message-ID: <87a7em6ben.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 This is currently ineffective with GCC because of GC PR 80005, but it makes sense to anticipate a fix for this defect. Suggested by Zack Weinberg. 2019-06-12 Florian Weimer * misc/sys/cdefs.h (__glibc_has_include): Do not use a function-like macro, so that __has_include can inhibit expansion of its argument. diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 638872b87b..ed146ce20b 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -413,7 +413,7 @@ #endif #ifdef __has_include -# define __glibc_has_include(header) __has_include (header) +# define __glibc_has_include __has_include #else # define __glibc_has_include(header) 0 #endif