Skip to content

Commit

Permalink
Enable __cplusplus
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth committed Jul 4, 2024
1 parent 40a43ad commit 7a1ddd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ if(MSVC)
# We use these in our AtomicSharedPtr implementation and it can't move
# to atomic<shared_ptr<T>> because NotificationToken relies on movability.
add_compile_options(/D_SILENCE_CXX20_OLD_SHARED_PTR_ATOMIC_SUPPORT_DEPRECATION_WARNING)

# Enable __cplusplus macro
add_compile_options(/Zc:__cplusplus)
else()
add_compile_options(-Wall -Wextra -Wempty-body -Wparentheses -Wunknown-pragmas -Wunreachable-code -Wunused-parameter -Wno-missing-field-initializers)
# TODO: Remove this when fixed
Expand Down

0 comments on commit 7a1ddd6

Please sign in to comment.