Reduce includes of platform specific files

This is done to avoid build issues in future.
For example previously the class "Duration" class caused build issues on
the MacOS platform due to a name conflict.
This commit is contained in:
WarmUpTill 2021-05-02 23:19:15 +02:00 committed by WarmUpTill
parent f8c589c7a2
commit 0bd7d004ad
3 changed files with 9 additions and 3 deletions

View File

@ -14,7 +14,9 @@
#undef Status
#undef Unsorted
#include <util/platform.h>
#include "../headers/advanced-scene-switcher.hpp"
#include <vector>
#include <QStringList>
#include <QRegularExpression>
static Display *xdisplay = 0;

View File

@ -4,7 +4,9 @@
#import <Carbon/Carbon.h>
#include <Carbon/Carbon.h>
#include <util/platform.h>
#include "../headers/advanced-scene-switcher.hpp"
#include <vector>
#include <QStringList>
#include <QRegularExpression>
void GetWindowList(std::vector<std::string> &windows)
{

View File

@ -1,12 +1,14 @@
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <util/platform.h>
#include "../headers/advanced-scene-switcher.hpp"
#include <TlHelp32.h>
#include <Psapi.h>
#include <locale>
#include <codecvt>
#include <string>
#include <vector>
#include <QStringList>
#include <QRegularExpression>
#define MAX_SEARCH 1000