From: Brian Paul Date: Thu, 26 Feb 2015 20:22:36 +0000 (-0700) Subject: mesa: move finite macro to imports.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a25e73df3a38bdbd9e880138edd3000ff54a609;p=mesa.git mesa: move finite macro to imports.h Move it to the only place it's used. Reviewed-by: Ian Romanick --- diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index a0d2a293d8a..a0ef75a24fd 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -63,14 +63,6 @@ extern "C" { #endif -/** - * finite macro. - */ -#if defined(_MSC_VER) -# define finite _finite -#endif - - /** * Disable assorted warnings */ diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 838b985b215..79210006109 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -121,6 +121,14 @@ static inline GLfloat LOG2(GLfloat x) +/** + * finite macro. + */ +#if defined(_MSC_VER) +# define finite _finite +#endif + + /*** *** IS_INF_OR_NAN: test if float is infinite or NaN ***/