From: malaterre Date: Sat, 22 Jan 2005 22:50:12 +0000 (+0000) Subject: COMP: MacOSX does not respect opengroup definition of timeval which has a time_t... X-Git-Tag: Version1.0.bp~213 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c192f5eb557ecea1d654ac753998a16c36551e81;p=gdcm.git COMP: MacOSX does not respect opengroup definition of timeval which has a time_t tv_sec, but rather define tv_sec as a long --- diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index 3ec56873..9c105780 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2005/01/22 01:40:41 $ - Version: $Revision: 1.118 $ + Date: $Date: 2005/01/22 22:50:12 $ + Version: $Revision: 1.119 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -295,7 +295,7 @@ std::string Util::GetCurrentDateTime() #else struct timeval tv; gettimeofday (&tv, NULL); - timep = &tv.tv_sec; + timep = (time_t*)(&tv.tv_sec); // Compute milliseconds from microseconds. milliseconds = tv.tv_usec / 1000; #endif