Jelajahi Sumber

[c] Update to C99, it's 2024.

Mario Zechner 1 tahun lalu
induk
melakukan
78fc6daaf0
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      CMakeLists.txt
  2. 1 1
      spine-sdl/CMakeLists.txt
  3. 1 1
      spine-sfml/cpp/CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -14,7 +14,7 @@ if(MSVC)
 	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
 	set (CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
 else()
-	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wunused-value -Wno-variadic-macros -Wextra -pedantic -Wshadow -std=c89")
+	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wunused-value -Wno-variadic-macros -Wextra -pedantic -Wshadow -std=c99")
 	set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunused-value -Wno-variadic-macros -Wextra -Wnon-virtual-dtor -pedantic -Wshadow -std=c++11 -fno-exceptions -fno-rtti")
 
 	if (${SPINE_SANITIZE})

+ 1 - 1
spine-sdl/CMakeLists.txt

@@ -10,7 +10,7 @@ else()
 endif()
 
 include(FetchContent)
-FetchContent_Declare(SDL GIT_REPOSITORY https://github.com/libsdl-org/SDL GIT_TAG release-2.0.22)
+FetchContent_Declare(SDL GIT_REPOSITORY https://github.com/libsdl-org/SDL GIT_TAG release-2.30.2)
 FetchContent_MakeAvailable(SDL)
 
 include_directories(src)

+ 1 - 1
spine-sfml/cpp/CMakeLists.txt

@@ -47,7 +47,7 @@ if(MSVC)
 	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
 	set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
 else()
-	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c89")
+	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -std=c99")
 	set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wnon-virtual-dtor -pedantic -std=c++11 -fno-exceptions -fno-rtti")
 endif()