From: Bastian Dehn Date: Sun, 7 Sep 2025 08:53:01 +0000 (+0200) Subject: change std to c99 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f3e23ad0df84ebd497cfeaf938bc3cdd9970a0af;p=discspan.git change std to c99 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ce52f54..9cbb069 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,9 +4,9 @@ set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type [Debug|Release]") message(STATUS "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - set(CMAKE_C_FLAGS "-Wall -std=gnu99 -g -fsanitize=address") + set(CMAKE_C_FLAGS "-Wall -std=c99 -g -fsanitize=address") else() - set(CMAKE_C_FLAGS "-Werror -std=gnu99") + set(CMAKE_C_FLAGS "-Werror -std=c99") endif() project(discspan) diff --git a/src/discspan.c b/src/discspan.c index e69c166..594169c 100644 --- a/src/discspan.c +++ b/src/discspan.c @@ -1,5 +1,6 @@ #include #include +#include #include #include