summaryrefslogtreecommitdiff
path: root/include/c99_math.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-02-24 15:11:45 -0700
committerBrian Paul <brianp@vmware.com>2015-02-24 17:10:28 -0700
commitf847ddb64dfe7d0e84354b30b7551d83fe3463c9 (patch)
treed3623572585f52989a74bdd8fcf79992a64d7cf3 /include/c99_math.h
parent612143b2d0b7ec84d43049908f454d79bebeeb5f (diff)
mesa: move signbit() macro to c99_math.h
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'include/c99_math.h')
-rw-r--r--include/c99_math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h
index 147bceed96d..9e31d0693b6 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -202,4 +202,12 @@ llrintf(float f)
#endif /* C99 */
+/*
+ * signbit() is a macro on Linux. Not available on Windows.
+ */
+#ifndef signbit
+#define signbit(x) ((x) < 0.0f)
+#endif
+
+
#endif /* #define _C99_MATH_H_ */