Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.2.0 Alpha
-
None
-
{code}SET PERLDIR=C:\Progs\Perl-5.16.3-x64
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_40
SET MINGWDIR=C:\Progs\mingw-builds\MinGW32-4.8.0_2{code}
Windows 7, Qt from git, latest stable. MinGW from 04.18.2013-00:48:28, can't retrace exact download url. From MinGW info.txt: {code}args: --buildroot=/temp --jobs=3 --mingw-compress --rev=2 gcc-4.8.0 --threads=win32 --exceptions=dwarf --srcs-compress{code}
and
{code}Thread model: posix
gcc version 4.7.2 (rev11, Built by MinGW-builds project) {code}{code}SET PERLDIR=C:\Progs\Perl-5.16.3-x64 SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_40 SET MINGWDIR=C:\Progs\mingw-builds\MinGW32-4.8.0_2{code} Windows 7, Qt from git, latest stable. MinGW from 04.18.2013-00:48:28, can't retrace exact download url. From MinGW info.txt: {code}args: --buildroot=/temp --jobs=3 --mingw-compress --rev=2 gcc-4.8.0 --threads=win32 --exceptions=dwarf --srcs-compress{code} and {code}Thread model: posix gcc version 4.7.2 (rev11, Built by MinGW-builds project) {code}
-
ce3e8f93c3a4d5f89b371b9e3598c8e39d4c12e4 8078e2ea1350fd5109074a2be7207d75840e57f7
Description
Hi, I get this compile error for latest stable branch (in all subrepositories latest stable too):
C:\Git\Qt5\qtdeclarative\src\qml\jsruntime\qv4dateobject.cpp:300:48: error: 'localtime_r' was not declared in this scope if (!localtime_r((const time_t*) &tt, &tmtm))
After adding
struct tm * localtime_r (const time_t *timer, struct tm *result) { struct tm *local_result; local_result = localtime (timer); if (local_result == NULL || result == NULL) return NULL; memcpy (result, local_result, sizeof (result)); return result; }
from http://lists-archives.com/mingw-users/09680-porting-localtime_r-and-gmtime_r.html the file compiles fine. But I'm not sure whether this implementation is truly reentrant.