andmarti1424 / sc-im

sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Other
4.81k stars 204 forks source link

use HAVE_STRUCT_TM_GMTOFF #726

Closed Kreijstal closed 1 year ago

Kreijstal commented 2 years ago

Trying to compile in mingw results in

conf.c:131:33: error: 'struct tm' has no member named 'tm_gmtoff'
  131 |     sprintf(strgmtoff, "%ld", lt->tm_gmtoff);
      |                                 ^~
make: *** [<builtin>: conf.o] Error 1
make: Leaving directory '/home/u/sc-im/src'

found something similar

andmarti1424 commented 2 years ago

hello. please post this to MinGW devs. This has nothing to do with sc-im I am afraid.

andmarti1424 commented 2 years ago

@Kreijstal could you test it?

Kreijstal commented 2 years ago

apparently it doesn't work on Mingw but on MSYS since this uses posix, so libraries such as sys/time.h aren't available in just unix

andmarti1424 commented 2 years ago

I see. Not planning on getting rid of its use though.