OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef9460
)
mesa: add a dummy definition for fpclassify() if needed
author
Brian Paul
<brianp@vmware.com>
Wed, 5 May 2010 03:14:42 +0000
(21:14 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 5 May 2010 03:14:42 +0000
(21:14 -0600)
src/mesa/main/querymatrix.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/querymatrix.c
b/src/mesa/main/querymatrix.c
index
82b6fe7
..
47e2934
100644
(file)
--- a/
src/mesa/main/querymatrix.c
+++ b/
src/mesa/main/querymatrix.c
@@
-69,6
+69,16
@@
fpclassify(double x)
return FP_NAN;
}
}
+
+#elif !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600
+
+enum {FP_NAN, FP_INFINITE, FP_ZERO, FP_SUBNORMAL, FP_NORMAL}
+fpclassify(double x)
+{
+ /* XXX do something better someday */
+ return FP_NORMAL;
+}
+
#endif
extern GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);