Change time_t in the functions that deal with timestamps to a new typedef timestamp_t (defined as a long).

that makes sure the c++ side and swigged Python side agree on the type, because time_t create problems in Python scripts.
This commit is contained in:
Henner Zeller
2017-12-07 13:16:33 +01:00
committed by jean-pierre charras
parent a63e9b863b
commit 3f57fa5d24
14 changed files with 47 additions and 33 deletions
+3 -3
View File
@@ -163,10 +163,10 @@ int ProcessExecute( const wxString& aCommandLine, int aFlags, wxProcess *callbac
}
time_t GetNewTimeStamp()
timestamp_t GetNewTimeStamp()
{
static time_t oldTimeStamp;
time_t newTimeStamp;
static timestamp_t oldTimeStamp;
timestamp_t newTimeStamp;
newTimeStamp = time( NULL );