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:
parent
afb355e68a
commit
45a754f4e5
|
@ -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
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user