Changeset 89e5214692 in tspsg for src/globals.h


Ignore:
Timestamp:
Sep 12, 2012, 6:50:04 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
197f54a2b9
Parents:
f48433245d
Message:

Replaced all Q_WS_xxx with Q_OS_xxx ifdefs where possible.

This is needed for compatibility with Qt 5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    rf48433245d r89e5214692  
    3434#   error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted.
    3535#endif
    36 #if defined(Q_WS_WINCE_WM) || defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
     36#if defined(Q_OS_WINCE_WM) || defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)
    3737    //! This is defined on handheld devices (e.g., Windows Mobile, Symbian).
    3838#   define HANDHELD
     
    131131inline bool hasUpdater()
    132132{
    133 #ifdef Q_WS_WIN32
     133#ifdef Q_OS_WIN32
    134134    return QFile::exists("updater/Update.exe");
    135 #else // Q_WS_WIN32
     135#else // Q_OS_WIN32
    136136    return false;
    137 #endif // Q_WS_WIN32
     137#endif // Q_OS_WIN32
    138138}
    139139
Note: See TracChangeset for help on using the changeset viewer.