From 74d406ed18789350f75c84f876faa5de91a144c9 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 18 May 2024 23:12:59 +0200 Subject: fics limits --- FICS/build.mk | 1 + FICS/ficslim.cpp | 9 +++++++++ FICS/ficslim.h | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 FICS/ficslim.cpp create mode 100644 FICS/ficslim.h diff --git a/FICS/build.mk b/FICS/build.mk index e807dec..ca1dc3d 100644 --- a/FICS/build.mk +++ b/FICS/build.mk @@ -11,6 +11,7 @@ OBJS = $(SRC_DIR)adminproc.o\ $(SRC_DIR)comproc.o\ $(SRC_DIR)eco.o\ $(SRC_DIR)fics_getsalt.o\ + $(SRC_DIR)ficslim.o\ $(SRC_DIR)ficsmain.o\ $(SRC_DIR)formula.o\ $(SRC_DIR)gamedb.o\ diff --git a/FICS/ficslim.cpp b/FICS/ficslim.cpp new file mode 100644 index 0000000..6ea7ffc --- /dev/null +++ b/FICS/ficslim.cpp @@ -0,0 +1,9 @@ +// SPDX-FileCopyrightText: 2024 Markus Uhlin +// SPDX-License-Identifier: ISC + +#include + +#include "ficslim.h" + +const time_t g_time_min = std::numeric_limits::min(); +const time_t g_time_max = std::numeric_limits::max(); diff --git a/FICS/ficslim.h b/FICS/ficslim.h new file mode 100644 index 0000000..79d819c --- /dev/null +++ b/FICS/ficslim.h @@ -0,0 +1,17 @@ +#ifndef FICS_LIMITS_H +#define FICS_LIMITS_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern const time_t g_time_min; +extern const time_t g_time_max; + +#ifdef __cplusplus +} +#endif + +#endif -- cgit v1.2.3