Mesa (master): mesa: added isblank() for MSVC

Brian Paul brianp at kemper.freedesktop.org
Tue Aug 24 14:05:02 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Aug 24 08:04:37 2010 -0600

mesa: added isblank() for MSVC

---

 src/mesa/main/imports.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 6c2ef52..cb35885 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -147,6 +147,7 @@ typedef union { GLfloat f; GLint i; } fi_type;
 static INLINE float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); }
 static INLINE float exp2f(float x) { return powf(2.0f, x); }
 static INLINE float log2f(float x) { return logf(x) * 1.442695041f; }
+static INLINE int isblank(int ch) { return ch == ' ' || ch == '\t'; }
 #endif
 /*@}*/
 




More information about the mesa-commit mailing list