Fix compilation under 64bit Windows and standarize the format of the thread ID.

This commit is contained in:
codestation
2013-12-19 00:03:13 -04:30
parent 0fc2198436
commit d6831fc6c6
4 changed files with 8 additions and 6 deletions

View File

@@ -26,7 +26,6 @@
#include <QSettings>
#include <QUrl>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
Database *CmaEvent::db = NULL;
@@ -40,7 +39,8 @@ CmaEvent::CmaEvent(vita_device_t *s_device) :
void CmaEvent::process()
{
qDebug("Starting event_thread: %lu", (unsigned long)QThread::currentThreadId());
qDebug("Starting event_thread: 0x%016" PRIxPTR, (quintptr)QThread::currentThreadId());
while(true) {
sema.acquire();
if(!isActive()) {