From patchwork Tue Jul 8 18:04:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 367985 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 5BBE814009E for ; Wed, 9 Jul 2014 04:04:52 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=Ltzrd14B6cJuus8V6PrUO/2hj0bAS 3Lwi4t9LhYOZvIxLwz6+vk8OzyCT/CFGCId+NiU7736hbx6yt996ymWwgPknvCV+ U8RNRFUSu3LbOTNWg2Yd2zxA/rumukdoI1tgKqPJdhx5H0eDWzQtjzVpj8IkRvFI sy7TuzpWUvD0EA= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=pSKVC4hZbLukt3gEibYRzi/WRY0=; b=xfS e4URrpMCCXgFTYl5nPzq4lsAzYuQZ0DzP2y6IMTdl7MSx6xGq2xBZqeEUvEE4FhR sk/5KhoIt0LmamA1qEsUbqAA3qROQA5Q8tBnqgaxP9b22jJkPKwXJtETX4pTMHkS 9jeEZLCxEWzl+YgchTvVTgi4r5wpFDT4uyZyzvBQ= Received: (qmail 23566 invoked by alias); 8 Jul 2014 18:04:47 -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 23548 invoked by uid 89); 8 Jul 2014 18:04:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Tue, 8 Jul 2014 23:34:38 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Fix Wundef warning for __cplusplus Message-ID: <20140708180437.GA20824@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) All current uses of the __cplusplus macro only check if it is defined or not. Fix this #if to use $ifdef like the rest of the code. This fixes the warning on i386. Siddhesh * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is defined. --- sysdeps/generic/unwind-pe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/generic/unwind-pe.h b/sysdeps/generic/unwind-pe.h index a4afe5c..a6ee414 100644 --- a/sysdeps/generic/unwind-pe.h +++ b/sysdeps/generic/unwind-pe.h @@ -22,7 +22,7 @@ than duplicating code, however. */ /* If using C++, references to abort have to be qualified with std::. */ -#if __cplusplus +#ifdef __cplusplus #define __gxx_abort std::abort #else #define __gxx_abort abort