From 74a0c7e32287256b48d75b87966b61fd4b6ae0bb Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 13 Dec 2023 23:57:44 +0100 Subject: Moved preprocessor directives to the header --- FICS/makerank.c | 4 ---- FICS/makerank.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/FICS/makerank.c b/FICS/makerank.c index c132e1c..72ee966 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -4,12 +4,8 @@ #include #include -#include "config.h" #include "makerank.h" -#define COMPUTER_FILE DEFAULT_LISTS "/computer" -#define MAX_LOGIN_NAME 21 - static ENTRY **list; static ENTRY **sortme; diff --git a/FICS/makerank.h b/FICS/makerank.h index 49fe563..bf255cc 100644 --- a/FICS/makerank.h +++ b/FICS/makerank.h @@ -1,6 +1,11 @@ #ifndef MAKERANK_H #define MAKERANK_H +#include "config.h" + +#define COMPUTER_FILE DEFAULT_LISTS "/computer" +#define MAX_LOGIN_NAME 21 + typedef struct _Entry { char name[MAX_LOGIN_NAME]; int computer; -- cgit v1.2.3