Hi all,
For some files, Inkscape includes "windef.h" which defines 'near':
#define near
This causes compile problems with the inline 'near' functions in coord.h
and point.h. This is the solution I have made in inkscape SVN in coord.h
and point.h:
#ifdef near
#define lib2geom_near_save near
#undef near
#endif
//IMPL: NearConcept
inline bool near(Coord a, Coord b, double eps=3DEPSILON) { return
fabs(a-b) <=3D eps; }
#ifdef lib2geom_near_save
#define near lib2geom_near_save
#undef lib2geom_near_save
#endif
What would be the best way to do this? In Inkscape code? Or in 2geom
code? (note that 2geom code is now incompatible with windef.h)
Thanks,
Johan
|