Skip to content

Commit

Permalink
fixed cocos#16190: Compilation errors if using Clang 15 with c++17 si…
Browse files Browse the repository at this point in the history
…nce std::unary_function has been removed
  • Loading branch information
dumganhar committed Sep 5, 2023
1 parent 42ff683 commit e0468e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ if(USE_SERVER_MODE)
add_definitions(-DCC_SERVER_MODE)
endif()

# Fix the issue: https://github.com/cocos/cocos-engine/issues/16190
# std::unary_function was removed since clang 15
add_definitions(-DBOOST_NO_CXX98_FUNCTION_BASE)

add_definitions(-DCC_NETMODE_CLIENT=0)
add_definitions(-DCC_NETMODE_LISTEN_SERVER=1)
Expand Down

0 comments on commit e0468e8

Please sign in to comment.