Ticket #14602: q3process_unix.cpp.diff

File q3process_unix.cpp.diff, 1.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 17 years ago)
  • src/qt3support/other/q3process_unix.cpp

    old new  
    761761#endif
    762762        i++;
    763763    }
    764 #ifdef Q_OS_MACX
     764#ifdef Q_WS_MACX
    765765    if(i) {
    766766        Q3CString arg_bundle = arglistQ[0];
    767767        QFileInfo fi(QString::fromUtf8(arg_bundle.constData()));
     
    858858                    QStringList pathList = QStringList::split( QLatin1Char(':'), QString::fromLocal8Bit(getenv( "PATH" )) );
    859859                    for (QStringList::Iterator it = pathList.begin(); it != pathList.end(); ++it ) {
    860860                        QString dir = *it;
    861 #if defined(Q_OS_MACX) //look in a bundle
     861#if defined(Q_WS_MACX) //look in a bundle
    862862                        if(!QFile::exists(dir + QLatin1Char('/') + command) && QFile::exists(dir + QLatin1Char('/') + command + QLatin1String(".app")))
    863863                            dir += QLatin1Char('/') + command + QLatin1String(".app/Contents/MacOS");
    864864#endif
     
    868868                        QFileInfo fileInfo( dir + "/" + command );
    869869#endif
    870870                        if ( fileInfo.isExecutable() ) {
    871 #if defined(Q_OS_MACX)
     871#if defined(Q_WS_MACX)
    872872                            arglistQ[0] = fileInfo.absFilePath().local8Bit();
    873873#else
    874874                            arglistQ[0] = fileInfo.filePath().local8Bit();