[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34967] trunk/blender/source/blender/ blenlib/BLI_math_base.h: declare round() and copysign() when on windows.

Nathan Letwory nathan at letworyinteractive.com
Fri Feb 18 15:22:47 CET 2011


Revision: 34967
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34967
Author:   jesterking
Date:     2011-02-18 14:22:46 +0000 (Fri, 18 Feb 2011)
Log Message:
-----------
declare round() and copysign() when on windows. Implementations for them already where in math_base.c

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	2011-02-18 13:58:08 UTC (rev 34966)
+++ trunk/blender/source/blender/blenlib/BLI_math_base.h	2011-02-18 14:22:46 UTC (rev 34967)
@@ -171,6 +171,11 @@
 
 MINLINE float shell_angle_to_dist(float angle);
 
+#if (defined(WIN32) || defined(WIN64)) && !defined(FREE_WINDOWS)
+double copysign(double x, double y);
+double round(double x);
+#endif
+
 double double_round(double x, int ndigits);
 
 #ifdef __cplusplus




More information about the Bf-blender-cvs mailing list