From patchwork Fri Nov 8 22:11:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1192279 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-512860-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="FDpOpVcN"; 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 478vdQ6FbSz9sNx for ; Sat, 9 Nov 2019 09:12:10 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; q=dns; s=default; b=UONy6cJq18ly0s4vKgoqjLc VSlTW+Z0yG6MBFgQOwxkrlXVLLurtv0B8GVszZgWnYtfup0xOUrVDInkNi2ctbwb ynpX6SQXeQXu/ji61ui+he726efYoZo6WY/hKmqXDjBpyifPawb1CXTAHaicYulc bj3q52/YGlf6Fm5HcftY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=default; bh=10gNXKTHx7UYALmuL2W6qjUfJHk=; b= FDpOpVcNCIZbrzmqQosde2cKi0xTVzxVJ3EddupbP0bj5ALSsjOPO167ZDZM/DmY QwOFuIYkEgCA1cbjr2BAyWVbLkORL7ncsNaUDgDRZQQzSC7EcZizZx8J9YBTrIsX 0lYso16dlIQ0r6h1pSELzEHnrb/ARFNwvznUG2CIlMk= Received: (qmail 46088 invoked by alias); 8 Nov 2019 22:12:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 46078 invoked by uid 89); 8 Nov 2019 22:12:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_COUK, KAM_SHORT, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*co.uk, HX-Spam-Relays-External:ESMTPA X-HELO: smtp2.wavenetuk.net Received: from smtp.wavenetuk.net (HELO smtp2.wavenetuk.net) (195.26.37.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Nov 2019 22:12:01 +0000 Received: from [10.133.163.164] (unknown [109.144.222.184]) by smtp2.wavenetuk.net (Postfix) with ESMTPA id EC8A56001BC for ; Fri, 8 Nov 2019 22:11:58 +0000 (GMT) From: Iain Sandoe Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [Darwin, committed] Add include guard to darwin-protos.h Message-Id: <1E04477C-5452-447B-808B-600C0C35167C@sandoe.co.uk> Date: Fri, 8 Nov 2019 22:11:27 +0000 To: GCC Patches The Darwin protos header is missing an include guard, this adds one. tested on x86_64-darwin16 applied to mainline thanks Iain gcc/ChangeLog: 2019-11-08 Iain Sandoe * config/darwin-protos.h: Add include quard. diff --git a/gcc/config/darwin-protos.h b/gcc/config/darwin-protos.h index afeca81..e6721c7 100644 --- a/gcc/config/darwin-protos.h +++ b/gcc/config/darwin-protos.h @@ -17,6 +17,9 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ +#ifndef CONFIG_DARWIN_PROTOS_H +#define CONFIG_DARWIN_PROTOS_H + extern void darwin_init_sections (void); extern int name_needs_quotes (const char *); @@ -123,3 +126,5 @@ extern void darwin_override_options (void); extern void darwin_patch_builtins (void); extern void darwin_rename_builtins (void); extern bool darwin_libc_has_function (enum function_class fn_class); + +#endif /* CONFIG_DARWIN_PROTOS_H */