[haiku-commits] haiku: hrev52561 - headers/compatibility/gnu

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 19 Nov 2018 18:14:59 -0500 (EST)

hrev52561 adds 1 changeset to branch 'master'
old head: 69bd151d32446e7f77cb079431511f71be6f3776
new head: c95db8833409a0c1b9cf1fde76a0edb31d8c0387
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=c95db8833409+%5E69bd151d3244

----------------------------------------------------------------------------

c95db8833409: sincos, sincof, sincosl declarations in gnu/math.h
  
  Signed-off-by: Zoltán Mizsei <zmizsei@xxxxxxxxxxxxx>
  
  Change-Id: I44b39e8d76dd970e18e285b5d8b9bad715608154
  Reviewed-on: https://review.haiku-os.org/715
  Reviewed-by: Jérôme Duval <jerome.duval@xxxxxxxxx>

                                   [ Zoltán Mizsei <zmizsei@xxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52561
Commit:      c95db8833409a0c1b9cf1fde76a0edb31d8c0387
URL:         https://git.haiku-os.org/haiku/commit/?id=c95db8833409
Author:      Zoltán Mizsei <zmizsei@xxxxxxxxxxxxx>
Date:        Mon Nov 19 11:51:31 2018 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Mon Nov 19 23:14:51 2018 UTC

----------------------------------------------------------------------------

1 file changed, 31 insertions(+)
headers/compatibility/gnu/math.h | 31 +++++++++++++++++++++++++++++++

----------------------------------------------------------------------------

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 <math.h>
+
+
+#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_ */


Other related posts:

  • » [haiku-commits] haiku: hrev52561 - headers/compatibility/gnu - waddlesplash