summaryrefslogtreecommitdiffstats
path: root/unix/tclAppInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-18 11:56:23 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-18 11:56:23 (GMT)
commit004fe2d35203d7d11d592e8808c83f8a04dfeb31 (patch)
tree205b18d8409c76f046212d0bc0457ec465dead68 /unix/tclAppInit.c
parentb0dd51b115eda106d6dd034f4867d446d28f4e1c (diff)
downloadtcl-004fe2d35203d7d11d592e8808c83f8a04dfeb31.zip
tcl-004fe2d35203d7d11d592e8808c83f8a04dfeb31.tar.gz
tcl-004fe2d35203d7d11d592e8808c83f8a04dfeb31.tar.bz2
Updste stdlib.h (add missing functions). Restructure tclAppInit.c
Diffstat (limited to 'unix/tclAppInit.c')
-rw-r--r--unix/tclAppInit.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/unix/tclAppInit.c b/unix/tclAppInit.c
index 3f69f45..51a4cb5 100644
--- a/unix/tclAppInit.c
+++ b/unix/tclAppInit.c
@@ -12,13 +12,15 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#if defined(BUILD_tcl) || defined(USE_TCL_STUBS)
-#error "Don't build with BUILD_tcl/USE_TCL_STUBS!"
-#endif
#include "tcl.h"
-#if TCL_MAJOR_VERSION < 9 && TCL_MINOR_VERSION < 7
+#if TCL_MAJOR_VERSION < 9
+# if defined(BUILD_tcl) || defined(USE_TCL_STUBS)
+# error "Don't build with BUILD_tcl/USE_TCL_STUBS!"
+# endif
+# if TCL_MINOR_VERSION < 7
# define Tcl_LibraryInitProc Tcl_PackageInitProc
# define Tcl_StaticLibrary Tcl_StaticPackage
+# endif
#endif
#ifdef TCL_TEST