]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
Revert "change to c99 std with define posix ext"
authorBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 10:13:29 +0000 (11:13 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 8 Feb 2025 10:13:29 +0000 (11:13 +0100)
This reverts commit 0b3db45a8567926c28711ea501a19dd72442eebf.

CMakeLists.txt
src/kds_s2000w_client.c
src/kds_s2000w_config.c
src/kds_s2000w_image_converter_netpbm.c
tests/kds_s2000w_client_mock.c
tests/kds_s2000w_net_get_opt_tests_run.c
tests/kds_s2000w_net_tests.c
tests/kds_s2000w_net_tests_run.c

index 6dd792be792906cb0a426c2dff6b75217c602299..34cc6dd7a630d3a342df27882990ae3ea3144c51 100644 (file)
@@ -7,16 +7,16 @@ PROJECT("kds-s2000w-net")
 SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release")
 
 IF(CMAKE_BUILD_TYPE STREQUAL "Release")
-       SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE)
+       SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE)
 ENDIF()
 
 IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
-       SET(CMAKE_C_FLAGS "-std=c99 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE)
+       SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE)
 ENDIF()
 
 IF (RUN_TESTS)
        SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "debug" FORCE)
-       SET(CMAKE_C_FLAGS "-std=c99 -fPIC \
+       SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC \
 -fprofile-arcs \
 -ftest-coverage \
 -Wall \
index 1eb82b9f193d51d43ad379083947111a2896375f..034ac1342b57197ed226e1e1c9d1913319cf8959 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <string.h>
 #include <stdlib.h>
 #include <curl/curl.h>
index 7391f3be20f2b0d1f71273453a90bb73da879778..e6ddcb9b3530e7e0dbc0ccfcc1d1bb86715b06f7 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdlib.h>
 #include <string.h>
 #include <confuse.h>
index a755fa8d6ca5b7fe87a6480b02690ab0d9564334..e0e44d1386a8287ac290e37691f7acdfba66f060 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdio.h>
 #include <string.h>
 #include <netpbm/pnm.h>
index 9846601470ce27b6a7ddac32aa75962f31ca32c2..f19e335c084c0d325d61b5be685bc8aee8701373 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
index 2c90d54f545f843beb5b00fd6ea0b77a78163f69..2bd71ee4af250e28ad410e61d3e5fd13bfc07ac5 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdlib.h>
 #include <string.h>
 #include "kds_s2000w_net_get_opt_tests.h"
index d63e888b30b7730ffe3c15ed46e0cc12c1ef5e40..4fb1c8805583c08ca7f9ade2ca7972250cb2eeda 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdlib.h>
 #include <sane/sane.h>
 #include <string.h>
index 0fd09b7b8def94694d00b592fa6d2c84eab958dc..e8386959e4e5d7535e80209b3241efd487a03ea1 100644 (file)
@@ -1,5 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
-#define _GNU_SROUCE
 #include <stdlib.h>
 #include <string.h>
 #include "kds_s2000w_net_tests.h"