forked from qt-creator/qt-creator
Code polishing, continuing cb23999fbf
Add more error messages to processes run for toolchain detection. Move Windows-specific code to dbgwinutils, remove inclusion of <windows.h>. Fix MinGW gcc 4.5 warnings.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
#include <QtNetwork/QTcpSocket>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
# include <windows.h>
|
||||
# include "dbgwinutils.h"
|
||||
#else
|
||||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
@@ -100,7 +100,7 @@ TrkGdbAdapter::TrkGdbAdapter(GdbEngine *engine) :
|
||||
m_gdbConnection = 0;
|
||||
m_snapshot.reset();
|
||||
#ifdef Q_OS_WIN
|
||||
const DWORD portOffset = GetCurrentProcessId() % 100;
|
||||
const unsigned long portOffset = winGetCurrentProcessId() % 100;
|
||||
#else
|
||||
const uid_t portOffset = getuid();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user