Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.

This commit is contained in:
Brecht Van Lommel 2013-01-25 13:51:49 +00:00
parent 13a4ad1a62
commit 08bc601aa5

@ -81,7 +81,7 @@
#endif
/* do not redefine functions from C99 or POSIX.1-2001 */
#if !(defined(_ISOC99_SOURCE) || _POSIX_C_SOURCE >= 200112L)
#if !(defined(_ISOC99_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L))
#ifndef sqrtf
#define sqrtf(a) ((float)sqrt(a))