headers: Add exp10 declarations to gnu/math.h.

These are GNU extensions so they need to be behind _GNU_SOURCE.

Fixes #16371.
This commit is contained in:
Augustin Cavalier
2020-07-07 20:48:58 -04:00
parent 21e213d3b0
commit 4639c4e898
+11 -4
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2018 Haiku, Inc. All Rights Reserved. * Copyright 2018-2020, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#ifndef _GNU_MATH_H_ #ifndef _GNU_MATH_H_
@@ -16,9 +16,16 @@
extern "C" { extern "C" {
#endif #endif
extern void sincos(double x, double *sin, double *cos);
extern void sincosf(float x, float *sin, float *cos); void sincos(double x, double *sin, double *cos);
extern void sincosl(long double x, long double *sin, long double *cos); void sincosf(float x, float *sin, float *cos);
void sincosl(long double x, long double *sin, long double *cos);
double exp10(double);
float exp10f(float);
long double exp10l(long double);
#ifdef __cplusplus #ifdef __cplusplus
} }