mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 01:36:22 +00:00
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:
parent
c6857b3019
commit
6b0723b3bb
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user