You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while trying to build the qt-5.6.0 package i ran into this.
tools/qdatetime.cpp: In function 'bool qt_localtime(qint64, QDate_, QTime_, QDateTimePrivate::DaylightStatus*)':
tools/qdatetime.cpp:2348:46: error: 'localtime_r' was not declared in this scope
res = localtime_r(&secsSinceEpoch, &local);
adiing -D_POSIX no longer works either since theres been some changes to time.h
if defined(_POSIX_C_SOURCE) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
Damn seems this one keeps turning up with every update, im going to do a patch that either removes it completely or fixes it so that it works correctly.
while trying to build the qt-5.6.0 package i ran into this.
tools/qdatetime.cpp: In function 'bool qt_localtime(qint64, QDate_, QTime_, QDateTimePrivate::DaylightStatus*)':
tools/qdatetime.cpp:2348:46: error: 'localtime_r' was not declared in this scope
res = localtime_r(&secsSinceEpoch, &local);
adiing -D_POSIX no longer works either since theres been some changes to time.h
if defined(_POSIX_C_SOURCE) && !defined(_POSIX_THREAD_SAFE_FUNCTIONS)
define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
endif
ifdef _POSIX_THREAD_SAFE_FUNCTIONS
__forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) {
return localtime_s(_Tm, _Time) ? NULL : _Tm;
}
__forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) {
return gmtime_s(_Tm, _Time) ? NULL : _Tm;
}
__forceinline char *__cdecl ctime_r(const time_t *_Time, char *_Str) {
return ctime_s(_Str, 0x7fffffff, _Time) ? NULL : _Str;
}
__forceinline char *__cdecl asctime_r(const struct tm *_Tm, char * _Str) {
return asctime_s(_Str, 0x7fffffff, _Tm) ? NULL : _Str;
}
endif
also there seems to be some other issues with the latest mingw-w64-headers + crt causing spurious build failures.
The text was updated successfully, but these errors were encountered: