kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #00156
Re: round() function
Hi,
there are fixes for those problems in my patch for the previous kicad release, as well as some other fixes, which I think are all either bugs or bad practice and I hope will be fixed in future releases.
I'm working on an updated patch for current kicad and CMake.
Regards,
Daniel
>
> From: "Geert Vancompernolle" <geert.vancompernolle@...>
> Date: 2006/09/17 sö PM 06:04:32 CEST
> To: kicad-devel@xxxxxxxxxxxxxxx
> Ämne: [kicad-devel] round() function
>
> Hi,
>
> Trying to start using VC++ 2005 Express edition to compile KiCAD.
>
> When trying to compile the files in the common directory, there's a file
> called "trigo.cpp" who's using the function round().
>
> However, such function is unknown to VC++.
>
> Is there an alternative for this? If so, then one could use the
> compiler switch __WINDOWS__ to switch between Windows and non-Windows
> targets.
>
> Also the following construnction is unknown to VC++:
>
> #define EXCHG(a,b) { typeof(a) __temp__ = (a); (a) = (b); (b) =
> __temp__; }
>
> The compiler can't handle "typeof(a) __temp__".
>
> This is used frequently into the file gr_basic.cpp, indirectly via the
> CLIP_LINE() macro.
>
>
> Best rgds,
>
> --Geert
>
>
>