mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 14:38:08 +00:00
Fixed Linux compile.
This commit is contained in:
parent
b3c887f7ce
commit
3f0603656b
@ -34,7 +34,7 @@
|
||||
|
||||
#include "pch.hpp"
|
||||
|
||||
#include <core/net/WebSocketclient.h>
|
||||
#include <core/net/WebSocketClient.h>
|
||||
#include <core/library/query/AllCategoriesQuery.h>
|
||||
#include <atomic>
|
||||
#include <json.hpp>
|
||||
@ -49,7 +49,7 @@ using Connection = WebSocketClient::Connection;
|
||||
|
||||
static const std::string sUri = "ws://127.0.0.1:7905";
|
||||
|
||||
static std::atomic<int> nextMessageId = 0;
|
||||
static std::atomic<int> nextMessageId(0);
|
||||
|
||||
static inline std::string generateMessageId() {
|
||||
return "integrated-websocket-client-" + std::to_string(nextMessageId.fetch_add(1));
|
||||
@ -238,4 +238,4 @@ void WebSocketClient::SetState(State state) {
|
||||
this->state = state;
|
||||
this->listener->OnClientStateChanged(this, state, oldState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,6 +34,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
/* curses defines a timeout() method that causes issues with
|
||||
asio's streambuf. include it up front so work around this */
|
||||
#include <boost/asio/basic_socket_streambuf.hpp>
|
||||
|
||||
#include <core/config.h>
|
||||
#include <core/i18n/Locale.h>
|
||||
#include <core/library/ILibrary.h>
|
||||
@ -85,4 +89,4 @@
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string/case_conv.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user