projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d902eb5
)
mesa: added isblank() for MSVC
author
Brian Paul
<brianp@vmware.com>
Tue, 24 Aug 2010 14:04:37 +0000
(08:04 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 24 Aug 2010 14:04:37 +0000
(08:04 -0600)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index 6c2ef52d35b3a5e259ba02b520b15045b08d4a69..cb35885dbd937e32519f9220c2bf966b8f602e8d 100644
(file)
--- 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
/*@}*/