From patchwork Sat Aug 3 01:55:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rosen Penev X-Patchwork-Id: 1141420 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=uclibc.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bwYB2p0R"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 460nF64pcLz9sNk for ; Sat, 3 Aug 2019 11:56:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 27C25861EE; Sat, 3 Aug 2019 01:56:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 62Q8EhTy8zWk; Sat, 3 Aug 2019 01:56:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id AD2668626B; Sat, 3 Aug 2019 01:56:04 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 569AC1BF360 for ; Sat, 3 Aug 2019 01:56:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 539838626B for ; Sat, 3 Aug 2019 01:56:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k5JXj24lhrvx for ; Sat, 3 Aug 2019 01:56:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 23D0D861EE for ; Sat, 3 Aug 2019 01:56:02 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id u14so36885087pfn.2 for ; Fri, 02 Aug 2019 18:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=5RCOVwRS50vGDFfI4ef74sJwL3VAAZI9ccjlj/3AbKg=; b=bwYB2p0R8BTPuzXraofSgeDLIslWQNnJ6EZmQLb16s9V092ZEdVOgo87MmhYqA7rtZ 5xulnfl465/FC/tVTPLBg9zXytdI5TcaODNbdUCxdu9x/aVJwNH9gdCzhIfuPW/K/wx6 x1vpDp1TmhgfbFljb6D7pkhyTZN2NMqC2xPQWmPLvJgfO3kh0lgiYfPTbS3DCua7oSqF RWeMsXrETJxRi3zfiOCqbzMFW1/cHO+IqSDdDmG9A+UN+PAgU2VrZ0P7EzExeFXhHo/y CZ4lWWGrY9Z2UX3fIKEjCBd0ok7YI8MfZpHkLQAOGCtI68e7M8527F0+qjSehmm5iaAh CH8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=5RCOVwRS50vGDFfI4ef74sJwL3VAAZI9ccjlj/3AbKg=; b=rwrDYBQizg+Uw12Bo6jLSE6OSx4MtNYuppY9inbEXyvvHd1A637WoghIuNA42wVFkX t6rxC/9dainjvJdS5rnjkIefSiVpS3Yp4jUKfdKC7wx6gL+4kqvZWGtosgKPAXYSenHp XxF1x7YqBrDinbvC7SS/7mkmGeqBi3OZLMJ4gkS8wNxkc3Y9MhjyCEbMqt7BSUfodX76 6+/TS1AdtYJ1EzTPAv4LIe0X+rJbZcxKGOwtQ5IehAZ5gbkcsymijlfpOnvHJY2f8c5C Zk2WluMfzPXZkAF0Ig3D8dSWR3S9EXTkG5/lE8WnF46TDnQVz1sL4KE9UvXdsDdYXaoo 9VEA== X-Gm-Message-State: APjAAAU7gk1RxKmxfB0y2MWNrKSbc16XkVC1lKwgrscWaIHaornaFqJX XFQoBucPeg+MMXSipnPr4Z2FQ4d+kBU= X-Google-Smtp-Source: APXvYqyinAjPgChUkGjHQ4p15vRlzRpDp13uXzA0GSdGYPWD7uKvBgth1mS1vHcN4+5WFLeOL+1uIg== X-Received: by 2002:a17:90a:b00b:: with SMTP id x11mr7101240pjq.120.1564797361488; Fri, 02 Aug 2019 18:56:01 -0700 (PDT) Received: from localhost.localdomain (76-14-106-55.rk.wavecable.com. [76.14.106.55]) by smtp.gmail.com with ESMTPSA id s24sm33424167pgm.3.2019.08.02.18.56.00 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 18:56:00 -0700 (PDT) From: Rosen Penev To: uclibc@uclibc.org Subject: [PATCH 3/4] include: Switch if to ifdef Date: Fri, 2 Aug 2019 18:55:57 -0700 Message-Id: <20190803015558.4143-3-rosenp@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190803015558.4143-1-rosenp@gmail.com> References: <20190803015558.4143-1-rosenp@gmail.com> X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" Throws -Wundef warning in modern compilers. Signed-off-by: Rosen Penev --- include/cstdio | 2 +- include/new | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cstdio b/include/cstdio index 8699385..f959ff5 100644 --- a/include/cstdio +++ b/include/cstdio @@ -65,7 +65,7 @@ namespace std{ using ::sprintf; using ::sscanf; using ::tmpfile; -#if _GLIBCXX_USE_TMPNAM +#ifdef _GLIBCXX_USE_TMPNAM using ::tmpnam; #endif using ::ungetc; diff --git a/include/new b/include/new index 6214b11..1dc33a4 100644 --- a/include/new +++ b/include/new @@ -39,13 +39,13 @@ namespace std{ _UCXXEXPORT void* operator new(std::size_t numBytes) _UCXX_THROW(std::bad_alloc); _UCXXEXPORT void operator delete(void* ptr) _UCXX_USE_NOEXCEPT; -#if __cpp_sized_deallocation +#ifdef __cpp_sized_deallocation _UCXXEXPORT void operator delete(void* ptr, std::size_t) _UCXX_USE_NOEXCEPT; #endif _UCXXEXPORT void* operator new[](std::size_t numBytes) _UCXX_THROW(std::bad_alloc); _UCXXEXPORT void operator delete[](void * ptr) _UCXX_USE_NOEXCEPT; -#if __cpp_sized_deallocation +#ifdef __cpp_sized_deallocation _UCXXEXPORT void operator delete[](void * ptr, std::size_t) _UCXX_USE_NOEXCEPT; #endif