add platform check

This commit is contained in:
b1ek 2023-04-16 02:19:07 +10:00
parent 27377f2f1e
commit 127653da00
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 15 additions and 3 deletions

View File

@ -1,14 +1,26 @@
#include "src/mainwindow.h"
#ifndef _WIN32
#ifndef linux
#error "Can't recognize your platform. Please either set _WIN32 or 'linux' macro according to your system."
#endif
#endif
#include <QApplication> #include <QApplication>
#include <iostream>
#include "yaml-cpp/yaml.h" #include "./src/config/config.h"
#include "src/mainwindow.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
Config config;
QApplication a(argc, argv); QApplication a(argc, argv);
MainWindow w; MainWindow w;
w.show(); w.show();
return a.exec(); return a.exec();
} }