diff options
Diffstat (limited to 'qtools/qdatetime.cpp')
-rw-r--r-- | qtools/qdatetime.cpp | 4 |
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 ); |