[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54099] trunk/blender/source/blender/ blenlib/BLI_math_base.h: Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Jan 25 14:51:52 CET 2013


Revision: 54099
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54099
Author:   blendix
Date:     2013-01-25 13:51:49 +0000 (Fri, 25 Jan 2013)
Log Message:
-----------
Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_math_base.h

Modified: trunk/blender/source/blender/blenlib/BLI_math_base.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_math_base.h	2013-01-25 10:17:06 UTC (rev 54098)
+++ trunk/blender/source/blender/blenlib/BLI_math_base.h	2013-01-25 13:51:49 UTC (rev 54099)
@@ -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))




More information about the Bf-blender-cvs mailing list