Changeset 24 for trunk/src


Ignore:
Timestamp:
Jun 8, 2009, 11:33:49 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: QDateTime: Fixed #ifdefs to use Posix time resolution on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/tools/qdatetime.cpp

    r2 r24  
    28922892    return QDateTime(d, t);
    28932893#else
    2894 #if defined(Q_OS_UNIX)
     2894#if defined(Q_OS_UNIX) || (defined(Q_OS_OS2) && defined(Q_CC_GNU))
    28952895    // posix compliant system
    28962896    // we have milliseconds
     
    29172917    tm *t = 0;
    29182918    localtime(&ltime);
     2919    QDateTime dt;
    29192920    dt.d->time.mds = MSECS_PER_HOUR * t->tm_hour + MSECS_PER_MIN * t->tm_min + 1000 * t->tm_sec;
    29202921#endif // Q_OS_UNIX
Note: See TracChangeset for help on using the changeset viewer.