attempt to fix compilation on windows

This commit is contained in:
csoler 2019-09-08 11:02:34 +02:00
parent 3a63ffaf5d
commit 63b56350ca
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -29,6 +29,7 @@ CrashStackTrace gCrashStackTrace;
#include <cmath>
#include <csignal>
#include <iomanip>
#ifdef __ANDROID__
# include <QAndroidService>
@ -234,8 +235,11 @@ int main(int argc, char* argv[])
return app.exec();
#else
#ifdef RS_JSONAPI
if(jsonApiServer && !webui_pass1.empty())
jsonApiServer->authorizeToken("webui:"+webui_pass1);
#endif
std::atomic<bool> keepRunning(true);
rsControl->setShutdownCallback([&](int){keepRunning = false;});