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: 1954 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