libc: provide C99 API functions

At least stdcxx needs some C99 functions and depends on _GLIBCXX_USE_C99
for C++11 compatibility.
This commit is contained in:
Christian Helmuth 2015-05-04 15:44:09 +02:00
parent c6857b3019
commit 6b0723b3bb
2 changed files with 7 additions and 2 deletions

View File

@ -1210,12 +1210,12 @@ namespace std
/* Define if C99 functions or macros from <wchar.h>, <math.h>, <complex.h>,
<stdio.h>, and <stdlib.h> can be used or exposed. */
/* #undef _GLIBCXX_USE_C99 */
#define _GLIBCXX_USE_C99 1
/* Define if C99 functions in <complex.h> should be used in <complex>. Using
compiler builtins for these functions requires corresponding C99 library
functions to be present. */
/* #undef _GLIBCXX_USE_C99_COMPLEX */
#define _GLIBCXX_USE_C99_COMPLEX 1
/* Define if C99 functions in <complex.h> should be used in <tr1/complex>.
Using compiler builtins for these functions requires corresponding C99

View File

@ -44,6 +44,11 @@ INC_DIR += $(LIBC_ARCH_INC_DIR)
#
CC_OPT += -D__FreeBSD__=8
#
# Provide C99 API functions (needed for C++11 in stdcxx at least)
#
CC_OPT += -D__ISO_C_VISIBLE=1999
#
# Prevent gcc-4.4.5 from generating code for the family of 'sin' and 'cos'
# functions because the gcc-generated code would actually call 'sincos'