From 08bc601aa59be6381b96521a6ede58fe7e977b08 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 25 Jan 2013 13:51:49 +0000 Subject: Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac. --- source/blender/blenlib/BLI_math_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 56c8ffb6931..94063c9a40a 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -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)) -- cgit v1.2.3