]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix compatibility with Tcl 9.0
authorYaakov Selkowitz <yselkowi@redhat.com>
Thu, 20 Mar 2025 22:49:10 +0000 (18:49 -0400)
committerYaakov Selkowitz <yselkowi@redhat.com>
Thu, 20 Mar 2025 22:49:10 +0000 (18:49 -0400)
The deprecated CONST84 was removed in 9.0.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
bindings/tcl/tclrrd.c

index f1803a36c3c30539e60e930e6e97daea279738b7..4d84f6c980080801e841f52b49980b3da2718038 100644 (file)
@@ -26,6 +26,9 @@
 
 /* support pre-8.4 tcl */
 
+#if TCL_MAJOR_VERSION > 8
+#   define CONST84 const
+#endif
 #ifndef CONST84
 #   define CONST84
 #endif