From 14ca76646ad2140aba44ae7070b04019ce2b3da0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 24 Sep 2012 13:20:33 -0600 Subject: [PATCH] mesa: add signbit() macro Reviewed-by: Matt Turner --- src/mesa/main/imports.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 81da5104717..a78d67966f8 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -145,6 +145,13 @@ static inline int isblank(int ch) { return ch == ' ' || ch == '\t'; } /*@}*/ +/* + * signbit() is a macro on Linux. Not available on Windows. + */ +#ifndef signbit +#define signbit(x) ((x) < 0.0f) +#endif + /** single-precision inverse square root */ static inline float -- 2.30.2