1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2026-06-12 14:10:44 +08:00

fix(compile): 'for' loop initial declarations are only allowed in C99 mode

This commit is contained in:
源文雨
2024-04-12 23:04:33 +09:00
parent 538e120d45
commit d3385953db
2 changed files with 5 additions and 9 deletions

View File

@@ -5,12 +5,6 @@ SET(CMAKE_BUILD_TYPE "Release")
include_directories("/usr/local/include")
link_directories("/usr/local/lib")
if (NOT BUILD STREQUAL "docker")
#在编译选项中加入c99支持
add_compile_options(-std=c99)
message(STATUS "optional:-std=c99")
endif ()
add_executable(cmoe cmoe.c)
add_executable(cmoeditor editor.c)