summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJesús Corrius <jcorrius@gmail.com>2013-08-14 22:18:54 +0200
committerMichael Stahl <mstahl@redhat.com>2013-08-14 21:42:19 +0000
commit5cca1c3f9162343fd92ae2344d24a571b07e9e39 (patch)
tree6a0c12c2a2099ba664842d03201f9796b1419af1 /svx
parentc90ecd3118a88968581aa0493a22210e808f3121 (diff)
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@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeGeometry.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx b/svx/source/customshapes/EnhancedCustomShapeGeometry.cxx
index e1ca88fc9890..f5662b0a2513 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>