[Libreoffice-commits] core.git: svx/source

Jesús Corrius jcorrius at gmail.com
Wed Aug 14 14:42:40 PDT 2013


 svx/source/customshapes/EnhancedCustomShapeGeometry.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 5cca1c3f9162343fd92ae2344d24a571b07e9e39
Author: Jesús Corrius <jcorrius at gmail.com>
Date:   Wed Aug 14 22:18:54 2013 +0200

    Fix Windows build for Visual Studio 2012
    
    For more information see:
    
    http://msdn.microsoft.com/en-us/library/4hwaceh6(v=vs.110).aspx
    
    Also it looks like limits includes math somehow so move the include lower.
    
    Change-Id: Ifec3a59370f7ad0e4bdc58c470e4f14f7db33660
    Reviewed-on: https://gerrit.libreoffice.org/5423
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
index e1ca88f..f5662b0 100644
--- a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
@@ -17,8 +17,12 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#include <limits>
+#ifdef WNT
+#define _USE_MATH_DEFINES // for M_SQRT2
+#endif
+
 #include <cmath>
+#include <limits>
 
 #include "svx/EnhancedCustomShapeGeometry.hxx"
 #include <com/sun/star/drawing/EnhancedCustomShapeGluePointType.hpp>


More information about the Libreoffice-commits mailing list