Skip to content
Snippets Groups Projects
Commit 78b20eb9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix M_PI problem with msvc

parent 879f9934
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ public:
}
double angle_deg(const BDS_Vector &v) const
{
return angle(v) * 180. / 3.1415926535897932;
return angle(v) * 180. / M_PI;
}
double operator * (const BDS_Vector &v) const
{
......
// $Id: HarmonicToTime.cpp,v 1.13 2008-01-22 20:44:36 geuzaine Exp $
// $Id: HarmonicToTime.cpp,v 1.14 2008-01-23 09:16:07 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -20,7 +20,6 @@
// Please report all bugs and problems to <gmsh@geuz.org>.
#include "HarmonicToTime.h"
#include "Numeric.h"
StringXNumber HarmonicToTimeOptions_Number[] = {
{GMSH_FULLRC, "RealPart", NULL, 0.},
......
// $Id: SphericalRaise.cpp,v 1.28 2008-01-20 12:21:30 geuzaine Exp $
// $Id: SphericalRaise.cpp,v 1.29 2008-01-23 09:16:07 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -20,7 +20,6 @@
// Please report all bugs and problems to <gmsh@geuz.org>.
#include "SphericalRaise.h"
#include "Numeric.h"
StringXNumber SphericalRaiseOptions_Number[] = {
{GMSH_FULLRC, "Xc", NULL, 0.},
......
// $Id: TransformLatLon.cpp,v 1.2 2008-01-22 20:44:36 geuzaine Exp $
// $Id: TransformLatLon.cpp,v 1.3 2008-01-23 09:16:07 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -20,7 +20,6 @@
// Please report all bugs and problems to <gmsh@geuz.org>.
#include "TransformLatLon.h"
#include "Numeric.h"
StringXNumber TransformLatLonOptions_Number[] = {
{GMSH_FULLRC,(char*) "iView", NULL, -1.},
......
......@@ -15,7 +15,7 @@ CXX=cl /EHsc /nologo
LINKER=cl /F16777216
# All compiler flags except optimization flags
FLAGS=/DWIN32 /DHAVE_NO_DLL /DHAVE_NO_VSNPRINTF /DHAVE_NO_SNPRINTF /DHAVE_NO_SOCKLEN_T /DHAVE_ANN /DHAVE_MATH_EVAL /DHAVE_NETGEN /DHAVE_TETGEN /DHAVE_TRIANGLE
FLAGS=/DWIN32 /D_USE_MATH_DEFINES /DHAVE_NO_DLL /DHAVE_NO_VSNPRINTF /DHAVE_NO_SNPRINTF /DHAVE_NO_SOCKLEN_T /DHAVE_ANN /DHAVE_MATH_EVAL /DHAVE_NETGEN /DHAVE_TETGEN /DHAVE_TRIANGLE
# Additional system includes
SYSINCLUDE=/I"C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE" /I"C:\Program Files\Microsoft SDKs\Windows\v6.0A\include"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment