diff options
author | Vinson Lee <[email protected]> | 2010-08-15 13:08:15 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-08-15 13:08:15 -0700 |
commit | a0b0afc6944b00df27145a96ad2727a36752e1d6 (patch) | |
tree | 256359857c101405cebee50ffdfa9b57439273ed /src | |
parent | 9349379d1acca23e7a2442549e49e9b58515d731 (diff) |
mesa: Check that _XOPEN_SOURCE is defined before using it.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/imports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index a439370bc4c..e967b147311 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -120,7 +120,7 @@ typedef union { GLfloat f; GLint i; } fi_type; * \name Work-arounds for platforms that lack C99 math functions */ /*@{*/ -#if (_XOPEN_SOURCE < 600) && !defined(_ISOC99_SOURCE) \ +#if (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE < 600)) && !defined(_ISOC99_SOURCE) \ && (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) \ && (!defined(_MSC_VER) || (_MSC_VER < 1400)) #define acosf(f) ((float) acos(f)) |