I am trying to build legacy C program under Windows using mingw32 port. But gcc compiller informs me about next errors:
gmtime_r(const time_t*, struct tm*); //implicit declaration of function
timegm(struct tm*); //implicit declaration of function
I tried to declare _mkgmtime
as suggested here but then I get the same error about declaration.
I also tried to declare gmtime_r
based on gmtime_s
as descibed here but is seems that mingw does not support gmtime_s
as well.
Is there any idea? Might need to replace them to some equivalents?
mingw-32 gcc 5.3.0-3 windows 7