Move definition of _POSIX_C_SOURCE to include/platform.hpp (#1524)

This commit is contained in:
Sylvie
2024-09-29 17:53:15 -04:00
committed by GitHub
parent 4cd0dd5314
commit d5ded84501
3 changed files with 8 additions and 7 deletions

View File

@@ -41,7 +41,6 @@ else()
# does not recognize this yet.
add_compile_options(-Wno-gnu-zero-variadic-macro-arguments)
endif()
add_definitions(-D_POSIX_C_SOURCE=200809L)
if(SANITIZERS)
set(SAN_FLAGS -fsanitize=shift -fsanitize=integer-divide-by-zero
-fsanitize=unreachable -fsanitize=vla-bound