Message ID | 20190927203509.12218-1-rosenp@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <uclibc-bounces@uclibc.org> 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.136; helo=silver.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver=<UNKNOWN>) 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="UhCakjE8"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46g3T54WfCz9sP7 for <incoming@patchwork.ozlabs.org>; Sat, 28 Sep 2019 06:35:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8876422846; Fri, 27 Sep 2019 20:35:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DQ1ctsNkdTnq; Fri, 27 Sep 2019 20:35:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 071CB204D9; Fri, 27 Sep 2019 20:35:14 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AB9641BF377 for <uclibc@lists.busybox.net>; Fri, 27 Sep 2019 20:35:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9C1958816F for <uclibc@lists.busybox.net>; Fri, 27 Sep 2019 20:35:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AK6OsEpWm+iH for <uclibc@lists.busybox.net>; Fri, 27 Sep 2019 20:35:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3691A8816A for <uclibc@uclibc.org>; Fri, 27 Sep 2019 20:35:12 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id t14so4082462pgs.3 for <uclibc@uclibc.org>; Fri, 27 Sep 2019 13:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=3PnPCB+JS3TLzTWIxTd3fzFeSyooG4r9kkf7enGmTmA=; b=UhCakjE8zz18s3a1UmivEAU0OlsnRN3FVFji5D6B+t5aY2E95uAzhiAApspt3FdWpB oiJmmtbpVUsc1Nb1MQ+s29i4UrKdUAmpMDiT85lcnIotePbDG5gfmk4fIfmsNcSCuaGw y3xJqJeOVGynp88jL9fNkn7xFAIkcsqZ8I4VzwUW07fHW9Wszna6B3KztC6+Vs/GWgCb Hu5eILC298TIb6n3flrecrXu3qgJomHJZOpj185opHJyVtWMrzS7KZKN5d7QJPJ+/Cai fyzBgZfMgrcijta6Ac7yO+kp/+KCCSBRYcOPfvBAlVn1rF1/5AHXLJsGiE/R4Tb6LJ30 j+rg== 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; bh=3PnPCB+JS3TLzTWIxTd3fzFeSyooG4r9kkf7enGmTmA=; b=BXBif+ljD06gn5w/DFN9BNWxF1ZcB0slvdjGZzwpQbRTC24pt4uDE/AA4hGyJnQ06x P/s9GRt4p5DuNjpreTl6GuVaxgvdqb6DH4AtH87uWk9kxoI0Z/+qcShJT3WGK9L0ezb7 ob9htRDsfKbA0Qi6IUV8cwqIVh4njrvRi4QfbDbRGD73mxKBk3WA1sxp9YHq+ksf1Uhk EURDYOuECuik7AhWebJPtZC77be5DzO0xTBdg+Y6q2KMoSEkqMxHJcHhu/MsDZ8tV8I8 K12a8KW9/QCGRwT3WnfmB6awvFLN/o8W0A101ILgKJTofoqf7+KRqLou6ZuJC/XOkeiB +zew== X-Gm-Message-State: APjAAAWl1EL4jcTBHFaQe13JdMndEHg0ewrxMjN1/bOoBwHgdb0pnuNZ Y6EaAFU3lMEWH+shFihDXsoDVeHd X-Google-Smtp-Source: APXvYqzdYVyyt9ZnO+F3S2lQpeDiF8cLzaZ1BHVnAjDitdeVeGyKAvF/xJnfUCxd4pObY+kTi3HKUA== X-Received: by 2002:a63:c947:: with SMTP id y7mr11550043pgg.345.1569616511223; Fri, 27 Sep 2019 13:35:11 -0700 (PDT) Received: from mangix-pc.lan ([69.42.0.147]) by smtp.gmail.com with ESMTPSA id o42sm8980458pjo.32.2019.09.27.13.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 13:35:10 -0700 (PDT) From: Rosen Penev <rosenp@gmail.com> To: uclibc@uclibc.org, rep.dot.nop@gmail.com Subject: [PATCH] cstdio: Add undef for four functions Date: Fri, 27 Sep 2019 13:35:09 -0700 Message-Id: <20190927203509.12218-1-rosenp@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" <uclibc.uclibc.org> List-Unsubscribe: <http://lists.busybox.net/mailman/options/uclibc>, <mailto:uclibc-request@uclibc.org?subject=unsubscribe> List-Archive: <http://lists.busybox.net/pipermail/uclibc/> List-Post: <mailto:uclibc@uclibc.org> List-Help: <mailto:uclibc-request@uclibc.org?subject=help> List-Subscribe: <http://lists.busybox.net/mailman/listinfo/uclibc>, <mailto:uclibc-request@uclibc.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" <uclibc-bounces@uclibc.org> |
Series |
cstdio: Add undef for four functions
|
expand
|
diff --git a/include/cstdio b/include/cstdio index f959ff5..0a42458 100644 --- a/include/cstdio +++ b/include/cstdio @@ -21,6 +21,15 @@ #ifndef __HEADER_CSTDIO #define __HEADER_CSTDIO 1 +#undef clearerr +#undef feof +#undef ferror +#undef fgetc +#undef fputc +#undef getc +#undef getchar +#undef putc +#undef putchar namespace std{ using ::FILE;
When compiling with uClibc-ng, these functions get defined as macros and become unavailable for std. Fixes programs that use the std versions of these functions. This matches libstdcpp behavior. Signed-off-by: Rosen Penev <rosenp@gmail.com> --- include/cstdio | 9 +++++++++ 1 file changed, 9 insertions(+)