Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undefine FORTIFY_SOURCE before defining again
Browse files Browse the repository at this point in the history
PabloMK7 committed Aug 20, 2024
1 parent f8d133c commit b2700b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ else()

if (NOT CMAKE_BUILD_TYPE STREQUAL Debug)
# _FORTIFY_SOURCE can't be used without optimizations.
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2)
add_compile_options(-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2)
endif()

if (CITRA_WARNINGS_AS_ERRORS)

0 comments on commit b2700b1

Please sign in to comment.