diff --git a/Makefile b/Makefile index 06587be..94d63e8 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS := -ggdb -Wall -pedantic -lpq -lcrypto +CFLAGS := -ggdb -Wextra -pedantic -std=c23 -lpq -lcrypto SRC_DIR := src OBJ_DIR := src/obj diff --git a/src/main.h b/src/main.h index 27a4478..7d4a897 100644 --- a/src/main.h +++ b/src/main.h @@ -14,6 +14,10 @@ #define FILE_USER_LIST_NAME "userlist" #define WELCOME_FILE_NAME "welcome" +#ifndef __USE_MISC +#define __USE_MISC +#endif + enum sess_states { OP_EDIT_FILE, OP_DOWNLOAD,