Re: [Mingw-w64-public] time.h (POSIX) _r functions
Hello, well this macros had one typo and an illegal assignment. This code should work, but of course you can use memset instead of assigning to __tm_zero, too. #include static struct tm __tm_zero; #define localtime_r_1(_Time, _Tm) ({ struct tm *___tmp_tm = \
[Mingw-w64-public] time.h (POSIX) _r functions
Something is invalid with these macros. Takes localtime_r for example... Both the GNU and standard cannot be compiled... Is it just me? #include #define localtime_r_1(_Time, _Tm) ({ struct tm *___tmp_tm = \ localtime((_Time)); \