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:
committed by
jean-pierre charras
parent
a63e9b863b
commit
3f57fa5d24
+3
-3
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user