aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-18 23:12:59 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-18 23:12:59 +0200
commit74d406ed18789350f75c84f876faa5de91a144c9 (patch)
treeb51429c35e880b073dcac9505fca7e2eb1208383
parentd2350f55df831b45c107b2558755b111fbf21b2b (diff)
fics limits
-rw-r--r--FICS/build.mk1
-rw-r--r--FICS/ficslim.cpp9
-rw-r--r--FICS/ficslim.h17
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