1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix missing includes in platform/timer_*

This commit is contained in:
tux3 2015-05-13 15:39:20 +02:00
parent 57871c9270
commit 3fcac1f884
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
3 changed files with 4 additions and 3 deletions

View File

@ -17,12 +17,12 @@
See the COPYING file for more details.
*/
#include <QtCore/qsystemdetection.h>
#if defined(__APPLE__) && defined(__MACH__)
#include "src/platform/timer.h"
#include <IOKit/IOKitLib.h>
#include <CoreFoundation/CoreFoundation.h>
uint32_t Platform::getIdleTime()
{
// https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c

View File

@ -12,11 +12,11 @@
See the COPYING file for more details.
*/
#include <QtCore/qsystemdetection.h>
#ifdef Q_OS_WIN32
#include "src/platform/timer.h"
#include <windows.h>
uint32_t Platform::getIdleTime()
{
LASTINPUTINFO info = { 0, 0 };

View File

@ -12,11 +12,12 @@
See the COPYING file for more details.
*/
#include <QtCore/qsystemdetection.h>
#if defined(Q_OS_UNIX) && !defined(__APPLE__) && !defined(__MACH__)
#include <QDebug>
#include "src/platform/timer.h"
#include <X11/extensions/scrnsaver.h>
uint32_t Platform::getIdleTime()
{
uint32_t idleTime = 0;