diff options
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/build.mk | 1 | ||||
-rw-r--r-- | FICS/ficslim.cpp | 9 | ||||
-rw-r--r-- | FICS/ficslim.h | 17 |
3 files changed, 27 insertions, 0 deletions
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 <maxxe@rpblc.net> +// SPDX-License-Identifier: ISC + +#include <limits> + +#include "ficslim.h" + +const time_t g_time_min = std::numeric_limits<time_t>::min(); +const time_t g_time_max = std::numeric_limits<time_t>::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 <time.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern const time_t g_time_min; +extern const time_t g_time_max; + +#ifdef __cplusplus +} +#endif + +#endif |