summaryrefslogtreecommitdiffstats
path: root/qtools/qdatetime.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-02-09 19:18:25 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-02-09 19:18:25 (GMT)
commitaacd1557af129e2bff3514169e04168376a2431b (patch)
tree95ba82f21de02e4db4763daea53134c8e56fb1df /qtools/qdatetime.cpp
parentdcd4714c4413348d02eb7224dafee5d06be43dfb (diff)
downloadDoxygen-aacd1557af129e2bff3514169e04168376a2431b.zip
Doxygen-aacd1557af129e2bff3514169e04168376a2431b.tar.gz
Doxygen-aacd1557af129e2bff3514169e04168376a2431b.tar.bz2
Release-1.8.3.1-20130209
Diffstat (limited to 'qtools/qdatetime.cpp')
-rw-r--r--qtools/qdatetime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtools/qdatetime.cpp b/qtools/qdatetime.cpp
index 4edaca9..d0cc36e 100644
--- a/qtools/qdatetime.cpp
+++ b/qtools/qdatetime.cpp
@@ -52,7 +52,7 @@
#include <dos.h>
#elif defined(_OS_OS2_)
#include <os2.h>
-#elif defined(_OS_UNIX_)
+#elif defined(_OS_UNIX_) || defined(_OS_MAC_)
#include <sys/time.h>
#include <unistd.h>
#undef gettimeofday
@@ -893,7 +893,7 @@ bool QTime::currentTime( QTime *ct )
t.second*1000 + t.hsecond*10;
return (t.hour== 0 && t.minute == 0);
-#elif defined(_OS_UNIX_)
+#elif defined(_OS_UNIX_) || defined(_OS_MAC_)
struct timeval tv;
gettimeofday( &tv, 0 );