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__)
|
#if defined(__APPLE__) && defined(__MACH__)
|
||||||
#include "src/platform/timer.h"
|
#include "src/platform/timer.h"
|
||||||
#include <QDebug>
|
|
||||||
#include <IOKit/IOKitLib.h>
|
#include <IOKit/IOKitLib.h>
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
|
|
||||||
|
@ -27,7 +26,7 @@
|
||||||
uint32_t Platform::getIdleTime()
|
uint32_t Platform::getIdleTime()
|
||||||
{
|
{
|
||||||
// https://hg.pidgin.im/pidgin/main/file/13e4ae613a6a/pidgin/gtkidle.c
|
// 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;
|
CFTypeRef property;
|
||||||
uint64_t idleTime_ns = 0;
|
uint64_t idleTime_ns = 0;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
See the COPYING file for more details.
|
See the COPYING file for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
#include "src/platform/timer.h"
|
#include "src/platform/timer.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
See the COPYING file for more details.
|
See the COPYING file for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#if defined(Q_OS_UNIX) && !defined(__APPLE__) && !defined(__MACH__)
|
#if defined(Q_OS_UNIX) && !defined(__APPLE__) && !defined(__MACH__)
|
||||||
#include "src/platform/timer.h"
|
#include "src/platform/timer.h"
|
||||||
#include <X11/extensions/scrnsaver.h>
|
#include <X11/extensions/scrnsaver.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user