Bug#677561: Fix build with oce 0.10

D. Barbier bouzim at gmail.com
Sat Jun 16 07:19:03 UTC 2012


On 2012/6/15 Julien Cristau wrote:
> On Thu, Jun 14, 2012 at 22:42:25 +0200, D. Barbier wrote:
>
>> Package: freecad
>> Version: 0.12.5284-dfsg-7
>> Severity: wishlist
>> Tags: patch
>>
>> Hello,
>>
>> This patch is needed to compile freecad with oce 0.10 currently
>> in experimental.
>>
>> Denis
>
>> diff --git a/src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp b/src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp
>> index d03237f..13eec35 100644
>> --- a/src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp
>> +++ b/src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp
>> @@ -52,6 +52,7 @@
>>  #include <gp_Pnt.hxx>
>>  #include <gp_Vec.hxx>
>>  #include <gp_XYZ.hxx>
>> +#include <math.h>
>>
>>  #include "SMDS_Mesh.hxx"
>>  #include "SMDS_Iterator.hxx"
>
> Shouldn't that (and a couple others) be <cmath>?

IMHO it does not matter, this include is needed only to get the M_PI
macro definition.

Denis





More information about the debian-science-maintainers mailing list