Module: Mesa Branch: master Commit: 14ca76646ad2140aba44ae7070b04019ce2b3da0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=14ca76646ad2140aba44ae7070b04019ce2b3da0
Author: Brian Paul <[email protected]> Date: Mon Sep 24 13:20:33 2012 -0600 mesa: add signbit() macro Reviewed-by: Matt Turner <[email protected]> --- src/mesa/main/imports.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 81da510..a78d679 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 _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
