Mesa (master): mesa: move finite macro to imports.h

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 28 20:46:11 UTC 2015


Module: Mesa
Branch: master
Commit: 8a25e73df3a38bdbd9e880138edd3000ff54a609
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a25e73df3a38bdbd9e880138edd3000ff54a609

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Feb 26 13:22:36 2015 -0700

mesa: move finite macro to imports.h

Move it to the only place it's used.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/compiler.h |    8 --------
 src/mesa/main/imports.h  |    8 ++++++++
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index a0d2a29..a0ef75a 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -64,14 +64,6 @@ extern "C" {
 
 
 /**
- * finite macro.
- */
-#if defined(_MSC_VER)
-#  define finite _finite
-#endif
-
-
-/**
  * Disable assorted warnings
  */
 #if defined(_WIN32) && !defined(__CYGWIN__)
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 838b985..7921000 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
  ***/




More information about the mesa-commit mailing list