From: Brian Paul Date: Tue, 24 Feb 2015 22:11:45 +0000 (-0700) Subject: mesa: move signbit() macro to c99_math.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f847ddb64dfe7d0e84354b30b7551d83fe3463c9;p=mesa.git mesa: move signbit() macro to c99_math.h Reviewed-by: Matt Turner --- 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_ */ diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index a6e4d9eafb6..82b3213dd90 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -99,14 +99,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type; /*@}*/ -/* - * signbit() is a macro on Linux. Not available on Windows. - */ -#ifndef signbit -#define signbit(x) ((x) < 0.0f) -#endif - - /*** *** LOG2: Log base 2 of float ***/