Try to be cross-platform

This commit is contained in:
Jan Dalheimer
2014-02-15 18:15:41 +01:00
parent 6f6d912d07
commit c0e58fbfb2
3 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#include "BaseProfiler.h"
#include <QProcess>
BaseProfiler::BaseProfiler(OneSixInstance *instance, QObject *parent)
: QObject(parent), m_instance(instance)
{
@@ -14,6 +16,15 @@ void BaseProfiler::beginProfiling(MinecraftProcess *process)
beginProfilingImpl(process);
}
qint64 BaseProfiler::pid(QProcess *process)
{
#ifdef Q_OS_UNIX
return process->pid();
#else
return (qint64)process->pid();
#endif
}
BaseProfilerFactory::~BaseProfilerFactory()
{
}