1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024444: Compilation issues on some not fully POSIX compliant Unix systems

- Standard package.
- OSD package.
- Aspect package.
- Xw package.
This commit is contained in:
apl
2014-08-14 13:42:50 +04:00
committed by abv
parent 72b11796c5
commit 0304f71151
11 changed files with 62 additions and 26 deletions

View File

@@ -371,9 +371,9 @@ Quantity_Date OSD_FileNode::CreationMoment(){
TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer );
if (!stat ( aBuffer.ToCString(), &buffer )) {
decode = localtime(&buffer.st_ctime);
result.SetValues (
decode->tm_mon+1, decode->tm_mday, decode->tm_year+1900,
time_t aTime = (time_t)buffer.st_ctime;
decode = localtime (&aTime);
result.SetValues (decode->tm_mon+1, decode->tm_mday, decode->tm_year+1900,
decode->tm_hour, decode->tm_min, decode->tm_sec , 0,0);
}
else
@@ -399,9 +399,9 @@ Quantity_Date OSD_FileNode::AccessMoment(){
TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer );
if (!stat ( aBuffer.ToCString(), &buffer )) {
decode = localtime(&buffer.st_atime);
result.SetValues (
decode->tm_mon+1, decode->tm_mday, decode->tm_year+1900,
time_t aTime = (time_t)buffer.st_ctime;
decode = localtime (&aTime);
result.SetValues (decode->tm_mon+1, decode->tm_mday, decode->tm_year+1900,
decode->tm_hour, decode->tm_min, decode->tm_sec, 0,0 );
}
else

View File

@@ -53,7 +53,6 @@ static pthread_t getOCCThread () {
#ifdef linux
#include <fenv.h>
#include <fpu_control.h>
static Standard_Boolean fFltExceptions = Standard_False;
#endif