mingw Digest, Vol 38, Issue 1
Simson Garfinkel
simsong at acm.org
Thu Nov 3 15:27:54 UTC 2011
>
> Message: 2
> Date: Wed, 2 Nov 2011 18:11:07 +0100
> From: Kai Tietz <ktietz70 at googlemail.com>
> Subject: Re: code quality of 32-bit vs. 64-bit mingw output
Kai,
Thank you for the email.
>
> you are running here into the issue that time_t is for 32-bit an
> 32-bit integer scalar, and for 64-bit windows a 64-bit integer-scalar.
> The scalar variant is the number of seconds elapsed since midnight
> on January 1, 1970.
>
> I tried to reproduce this on 64-bit Windows with current trunk version
> of crt and headers, and I don't get a crash here. So I have two
> questions here:
>
> First, what compiler version you are using?
They are both 4.6.2 20110908
> Second, what mingw-w64 runtime-version you are using?
How do I find this out?
>
> the gtime_r gets defined only if _POSIX was defined. So check if
> gmtime_r is defined as
>
> #ifndef gmtime_r
> #define gmtime_r(_Time,_Tm) ({ struct tm *___tmp_tm = \
> gmtime((_Time)); \
> if (___tmp_tm) { \
> *(_Tm) = *___tmp_tm; \
> ___tmp_tm = (_Tm); \
> } \
> ___tmp_tm; })
> #endif
>
> in your time.h.
Yes, I have that. Should I define _POSIX?
> Kai
>
>
> ------------------------------
>
> _______________________________________________
> mingw mailing list
> mingw at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/mingw
>
> End of mingw Digest, Vol 38, Issue 1
> ************************************
More information about the mingw
mailing list