This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21326] C99 functions are not declared for C++11 and later if _GNU_SOURCE is not predefined by g++
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 09 Oct 2017 14:19:26 +0000
- Subject: [Bug libc/21326] C99 functions are not declared for C++11 and later if _GNU_SOURCE is not predefined by g++
- Auto-submitted: auto-generated
- References: <bug-21326-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21326
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via d6c064e914cba3277d852c9fa27db53f0059ff8c (commit)
from 645ac9aaf89e3311949828546df6334322f48933 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d6c064e914cba3277d852c9fa27db53f0059ff8c
commit d6c064e914cba3277d852c9fa27db53f0059ff8c
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Oct 9 14:58:34 2017 +0100
Ensure C99 and C11 interfaces are available for C++ [BZ #21326]
This patch ensures that the C99 and C11 features required by C++ are
defined according to the value of the __cplusplus macro, and not just
because G++ always defines _GNU_SOURCE. This will allow G++ to stop
defining _GNU_SOURCE some day, without causing the C99 and C11
interfaces to disappear for C++ programs.
[BZ #21326]
* include/features.h [__cplusplus >= 201103] (__USE_ISOC99): Define.
[__cplusplus >= 201703] (__USE_ISOCXX17, __USE_ISOC11): Define.
* math/Makefile (test-math-cxx11): New test.
* math/test-math-cxx11.cc: New file.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +++
include/features.h | 17 +++--
math/Makefile | 4 +-
math/test-math-cxx11.cc | 160 +++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 182 insertions(+), 7 deletions(-)
create mode 100644 math/test-math-cxx11.cc
--
You are receiving this mail because:
You are on the CC list for the bug.