Skip to content

Commit

Permalink
Fix g++ 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Wincent01 committed Jun 6, 2024
1 parent af651f0 commit ebe6062
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions dCommon/dConfig.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "dConfig.h"

#include <sstream>
#include <algorithm>

#include "BinaryPathFinder.h"
#include "GeneralUtils.h"
Expand Down
1 change: 1 addition & 0 deletions dNet/BitStreamUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "MessageIdentifiers.h"
#include "BitStream.h"
#include <string>
#include <algorithm>

enum class eConnectionType : uint16_t;

Expand Down
4 changes: 4 additions & 0 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ if(NOT WIN32)
target_include_directories(bcrypt PRIVATE "libbcrypt/include/bcrypt")
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
target_compile_definitions(bcrypt PRIVATE "_POSIX_C_SOURCE=200809L")
endif()

target_include_directories(bcrypt INTERFACE "libbcrypt/include")
target_include_directories(bcrypt PRIVATE "libbcrypt/src")

Expand Down

0 comments on commit ebe6062

Please sign in to comment.