From bc42f3a72fae4c36e1bdceb0af3d439cc6c15f1b Mon Sep 17 00:00:00 2001 From: Alexander Zhylin Date: Tue, 27 Jan 2026 14:38:31 +0200 Subject: [PATCH] adapted for C23 --- Makefile | 2 +- src/main.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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,