X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Ftemplate%2Fconfig.h;h=1a342c8990561357ac83ac1630beb0dd85d1c535;hb=2e91d9b2e19a5dee8e5e0959bc9face260c22daf;hp=6aa593975962baff36a69c0f62b0447ed7eb7d03;hpb=e6d245a3e80c0e0c05476e5bd9c45a77e16fecec;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/template/config.h b/make/template/config.h index 6aa593975..1a342c899 100644 --- a/make/template/config.h +++ b/make/template/config.h @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2014 Peter Powell + * Copyright (C) 2014, 2016, 2018-2019 Sadie Powell * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -19,20 +19,40 @@ #pragma once -#define BRANCH "InspIRCd-@VERSION_MAJOR@.@VERSION_MINOR@" -#define VERSION "InspIRCd-@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@" -#define REVISION "@VERSION_LABEL@" -#define SYSTEM "@SYSTEM_NAME_VERSION@" +/*** The branch version that is shown to unprivileged users. */ +#define INSPIRCD_BRANCH "InspIRCd-@VERSION_MAJOR@" -#define CONFIG_PATH "@CONFIG_DIR@" -#define DATA_PATH "@DATA_DIR@" -#define LOG_PATH "@LOG_DIR@" -#define MOD_PATH "@MODULE_DIR@" +/*** The full version that is shown to privileged users. */ +#define INSPIRCD_VERSION "InspIRCd-@VERSION_FULL@" -#define INSPIRCD_SOCKETENGINE_NAME "@SOCKETENGINE@" +/*** Determines whether this version of InspIRCd is older than the requested version. */ +#define INSPIRCD_VERSION_BEFORE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) < ((MAJOR << 8) | (MINOR))) + +/*** Determines whether this version of InspIRCd is equal to or newer than the requested version. */ +#define INSPIRCD_VERSION_SINCE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 16) | @VERSION_MINOR@) >= ((MAJOR << 8) | (MINOR))) + +/*** The default location that config files are stored in. */ +#define INSPIRCD_CONFIG_PATH "@CONFIG_DIR@" + +/*** The default location that data files are stored in. */ +#define INSPIRCD_DATA_PATH "@DATA_DIR@" + +/*** The default location that log files are stored in. */ +#define INSPIRCD_LOG_PATH "@LOG_DIR@" + +/*** The default location that module files are stored in. */ +#define INSPIRCD_MODULE_PATH "@MODULE_DIR@" #ifndef _WIN32 %target include/config.h + +/*** Whether the arc4random_buf() function was available at compile time. */ + %define HAS_ARC4RANDOM_BUF + +/*** Whether the clock_gettime() function was available at compile time. */ %define HAS_CLOCK_GETTIME + +/*** Whether the eventfd() function was available at compile time. */ %define HAS_EVENTFD + #endif