mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Minor trivial cleanups in platform/*
This commit is contained in:
parent
bdefe54efa
commit
ce5e91dcfc
|
@ -19,7 +19,6 @@
|
|||
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#include "src/platform/timer.h"
|
||||
#include <QDebug>
|
||||
#include <IOKit/IOKitLib.h>
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
|
@ -27,7 +26,7 @@
|
|||
uint32_t Platform::getIdleTime()
|
||||
{
|
||||
// https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c
|
||||
static io_service_t service = NULL;
|
||||
static io_service_t service = 0;
|
||||
CFTypeRef property;
|
||||
uint64_t idleTime_ns = 0;
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
#include <QDebug>
|
||||
#ifdef Q_OS_WIN32
|
||||
#include "src/platform/timer.h"
|
||||
#include <windows.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
#include <QDebug>
|
||||
#if defined(Q_OS_UNIX) && !defined(__APPLE__) && !defined(__MACH__)
|
||||
#include "src/platform/timer.h"
|
||||
#include <X11/extensions/scrnsaver.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user