From c95db8833409a0c1b9cf1fde76a0edb31d8c0387 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= Date: Mon, 19 Nov 2018 12:51:31 +0100 Subject: [PATCH] sincos, sincof, sincosl declarations in gnu/math.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zoltán Mizsei Change-Id: I44b39e8d76dd970e18e285b5d8b9bad715608154 Reviewed-on: https://review.haiku-os.org/715 Reviewed-by: Jérôme Duval --- headers/compatibility/gnu/math.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 headers/compatibility/gnu/math.h diff --git a/headers/compatibility/gnu/math.h b/headers/compatibility/gnu/math.h new file mode 100644 index 0000000000..95ee4cb1ee --- /dev/null +++ b/headers/compatibility/gnu/math.h @@ -0,0 +1,31 @@ +/* + * Copyright 2018 Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + */ +#ifndef _GNU_MATH_H_ +#define _GNU_MATH_H_ + + +#include_next + + +#ifdef _GNU_SOURCE + + +#ifdef __cplusplus +extern "C" { +#endif + +extern void sincos(double x, double *sin, double *cos); +extern void sincosf(float x, float *sin, float *cos); +extern void sincosl(long double x, long double *sin, long double *cos); + +#ifdef __cplusplus +} +#endif + + +#endif + + +#endif /* _GNU_MATH_H_ */