mirror of
https://github.com/fumiama/CMoe-Counter.git
synced 2026-06-05 02:00:24 +08:00
fix(compile): remove c99 restriction
This commit is contained in:
@@ -5,10 +5,6 @@ SET(CMAKE_BUILD_TYPE "Release")
|
|||||||
include_directories("/usr/local/include")
|
include_directories("/usr/local/include")
|
||||||
link_directories("/usr/local/lib")
|
link_directories("/usr/local/lib")
|
||||||
|
|
||||||
#在编译选项中加入c99支持
|
|
||||||
add_compile_options(-std=c99)
|
|
||||||
message(STATUS "optional:-std=c99")
|
|
||||||
|
|
||||||
add_executable(cmoe cmoe.c)
|
add_executable(cmoe cmoe.c)
|
||||||
add_executable(cmoeditor editor.c)
|
add_executable(cmoeditor editor.c)
|
||||||
|
|
||||||
|
|||||||
2
cmoe.c
2
cmoe.c
@@ -199,7 +199,7 @@ int main(int argc, char **argv) {
|
|||||||
theme = get_arg(theme + 6);
|
theme = get_arg(theme + 6);
|
||||||
}
|
}
|
||||||
char* reg = strstr(QS, "reg=");
|
char* reg = strstr(QS, "reg=");
|
||||||
int fd;
|
int fd;
|
||||||
if (!reg) {
|
if (!reg) {
|
||||||
if ((fd=create_or_open(datfile)) < 0) {
|
if ((fd=create_or_open(datfile)) < 0) {
|
||||||
http_error(HTTP500, "Open File Error.");
|
http_error(HTTP500, "Open File Error.");
|
||||||
|
|||||||
Reference in New Issue
Block a user