sandyre / libopencad

OpenSource library under X/MIT license to work with CAD files (DWG/DXF). Please use repository linked below, this one is abandoned.
https://github.com/nextgis-borsch/lib_opencad
MIT License
197 stars 63 forks source link

Doesn't compile on i386 when time_t is defined as int #30

Closed lbartoletti closed 8 years ago

lbartoletti commented 8 years ago

time_t is not necessary a long. On some architecture (for my case FreeBSD i386), time_t is defined as an int (and long for amd64). So, for 32 bits, libopencad doesn't compile:

lib/cadheader.h:78:5: error: constructor cannot be redeclared CADVariant( time_t val );
    ^
lib/cadheader.h:72:5: note: previous declaration is here CADVariant( int val );

See types.h

drnextgis commented 8 years ago

Any progress on this issue?

sandyre commented 8 years ago

Last commit fixes build?

lbartoletti commented 8 years ago

Yes