]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change std to c99
authorBastian Dehn <hhaalo@arcor.de>
Sun, 7 Sep 2025 08:53:01 +0000 (10:53 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 7 Sep 2025 08:53:01 +0000 (10:53 +0200)
CMakeLists.txt
src/discspan.c

index ce52f5459c59ddca0791bfe1f643d85e3f52387c..9cbb069286fbc81ca47d1f7822e829013bcc7595 100644 (file)
@@ -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)
index e69c166c842f2da1d5d63a432e4c297c7076dfea..594169c67928a8e371f8a8bf1b35a4ee9ea3ca35 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
+#include <getopt.h>
 #include <unistd.h>
 #include <stdint.h>