From f847ddb64dfe7d0e84354b30b7551d83fe3463c9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 24 Feb 2015 15:11:45 -0700 Subject: mesa: move signbit() macro to c99_math.h Reviewed-by: Matt Turner --- include/c99_math.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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_ */ -- cgit v1.2.3