sandyre/libopencad

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

Closed this issue · 3 comments

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

Any progress on this issue?

Last commit fixes build?