mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[proxy,modules] fix c++ 11 compatibility
This commit is contained in:
parent
c7f7f38367
commit
764936fe64
@ -28,7 +28,7 @@ if (supported)
|
|||||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
add_library(${PROJECT_NAME} MODULE
|
add_library(${PROJECT_NAME} MODULE
|
||||||
|
@ -87,7 +87,7 @@ class ChannelData
|
|||||||
|
|
||||||
bool add(const std::string& name, bool back)
|
bool add(const std::string& name, bool back)
|
||||||
{
|
{
|
||||||
std::lock_guard guard(_mux);
|
std::lock_guard<std::mutex> guard(_mux);
|
||||||
if (_map.find(name) == _map.end())
|
if (_map.find(name) == _map.end())
|
||||||
{
|
{
|
||||||
WLog_INFO(TAG, "adding '%s' to dump list", name.c_str());
|
WLog_INFO(TAG, "adding '%s' to dump list", name.c_str());
|
||||||
@ -98,7 +98,7 @@ class ChannelData
|
|||||||
|
|
||||||
std::ofstream stream(const std::string& name, bool back)
|
std::ofstream stream(const std::string& name, bool back)
|
||||||
{
|
{
|
||||||
std::lock_guard guard(_mux);
|
std::lock_guard<std::mutex> guard(_mux);
|
||||||
auto& atom = _map[name];
|
auto& atom = _map[name];
|
||||||
auto count = atom++;
|
auto count = atom++;
|
||||||
auto path = filepath(name, back, count);
|
auto path = filepath(name, back, count);
|
||||||
|
Loading…
Reference in New Issue
Block a user