diff options
author | Vinson Lee <[email protected]> | 2010-08-18 14:36:08 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-08-18 14:36:08 -0700 |
commit | e1c7f3af0cb6769ef20a954459cfb87b9f99b4d6 (patch) | |
tree | 9ede38bd713b30783ac6c6be19bfe35b34dfd142 /src/mesa/main/querymatrix.c | |
parent | 3ef83d270b2c24867a0d020b81bdc6c54cb1c9b0 (diff) |
mesa: fpclassify is available on OpenSolaris.
There is no explicit predefined macro to distinguish between OpenSolaris
and Solaris. This patch assumes that the difference is in the compilers.
OpenSolaris uses GCC and not the Sun Studio compiler. Assume that the
availability of fpclassify is due to GCC.
This patch was not tested on Solaris. It would break the build on
Solaris with GCC if GCC on Solaris does not have fpclassify.
Diffstat (limited to 'src/mesa/main/querymatrix.c')
-rw-r--r-- | src/mesa/main/querymatrix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index 32aaa79f7fb..36236eb9a75 100644 --- a/src/mesa/main/querymatrix.c +++ b/src/mesa/main/querymatrix.c @@ -72,7 +72,8 @@ fpclassify(double x) #elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \ defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ - (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__) + (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__) || \ + (defined(__sun) && defined(__GNUC__)) /* fpclassify is available. */ |