summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCristian Morales Vega <cristian@samknows.com>2014-09-23 13:17:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-09-26 13:46:43 +0200
commitbd3eaf83ef1b4954b6c0e7ba8bbdd29b2cd4a833 (patch)
tree266a3e192661660b7786659ea7ad08c14abaa580 /include
parent3f6cd5063abe21992552a17116f5489cbd2021e3 (diff)
Do not define unimplemented functions
e.g. fminf() is not implemented, only fmin(), but both are defined. Signed-off-by: Cristian Morales Vega <cristian@samknows.com>
Diffstat (limited to 'include')
-rw-r--r--include/math.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/math.h b/include/math.h
index ecb9aa6f6..40dd90ef0 100644
--- a/include/math.h
+++ b/include/math.h
@@ -118,6 +118,7 @@ __BEGIN_DECLS
# define _Mfloat_ float
# endif
# define _Mdouble_ _Mfloat_
+# define _Mdouble_is_float_
# ifdef __STDC__
# define __MATH_PRECNAME(name,r) name##f##r
# else
@@ -126,6 +127,7 @@ __BEGIN_DECLS
# define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_C99
# define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99
# include <bits/mathcalls.h>
+# undef _Mdouble_is_float_
# undef _Mdouble_
# undef _Mdouble_BEGIN_NAMESPACE
# undef _Mdouble_END_NAMESPACE