Windows '_获取时区';尝试使用MinGW编译时未声明

Windows '_获取时区';尝试使用MinGW编译时未声明,windows,qt,mingw,thrift,qt4.8,Windows,Qt,Mingw,Thrift,Qt4.8,我将QtCreator 2.6与qt4.8.4结合使用,并试图通过MinGW(4.432位)在windows7x64上编译代码 我将其包含到我的项目中,并在文件thrift\windows\GetTimeOfDay.cpp中出错: 'errno_t' was not declared in this scope '_get_timezone' was not declared in this scope` '_get_daylight' was not declared in this scop

我将QtCreator 2.6与qt4.8.4结合使用,并试图通过MinGW(4.432位)在windows7x64上编译代码

我将其包含到我的项目中,并在文件
thrift\windows\GetTimeOfDay.cpp
中出错:

'errno_t' was not declared in this scope
'_get_timezone' was not declared in this scope`
'_get_daylight' was not declared in this scope

你知道怎么解决那个问题吗?

我有个好主意。我们必须避免所有的
GetTimeOfDay
,从项目文件
GetTimeOfDay.cpp、GetTimeOfDay.h
中删除,并使用
的函数
GetTimeOfDay

如果有人会得到同样的错误,我可以提供更多的代码

当然,如果你能找到更好的方法来解决这个问题(或者说,这个问题在节俭的后续版本中得到了解决)——请随意在这里发帖