summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-16 09:17:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-16 09:17:25 (GMT)
commit3bbe089a07471851d1352b8d2ac3a2f544c3d8bb (patch)
tree274545e9246a2a642e1ceca8183e2f171205c59c /win
parent5d8dc198ffb03372e3b66985f080b2d9a3a30297 (diff)
parent09c2f769ba9fbbb8a1b62ce432c0c7a26ca4f800 (diff)
downloadtcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.zip
tcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.tar.gz
tcl-3bbe089a07471851d1352b8d2ac3a2f544c3d8bb.tar.bz2
Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by default.
Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
Diffstat (limited to 'win')
-rw-r--r--win/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/win/Makefile.in b/win/Makefile.in
index 23f5a2b..ff3a511 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -138,6 +138,11 @@ SHARED_LIBRARIES = $(TCL_DLL_FILE) $(TCL_STUB_LIB_FILE) \
$(DDE_DLL_FILE) $(REG_DLL_FILE) $(PIPE_DLL_FILE)
STATIC_LIBRARIES = $(TCL_LIB_FILE) $(REG_LIB_FILE) $(DDE_LIB_FILE)
+# To compile without backward compatibility and deprecated code
+# uncomment the following
+NO_DEPRECATED_FLAGS =
+#NO_DEPRECATED_FLAGS = -DTCL_NO_DEPRECATED
+
# TCL_EXE is the name of a tclsh executable that is available *BEFORE* running
# make for the first time. Certain build targets (make genstubs) need it to be
# available on the PATH. This executable should *NOT* be required just to do a
@@ -186,7 +191,7 @@ COPY = cp
CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
-I"${GENERIC_DIR_NATIVE}" -DTCL_TOMMATH -DMP_PREC=4 -I"${TOMMATH_DIR_NATIVE}" \
-I"${WIN_DIR_NATIVE}" ${AC_FLAGS} \
-${COMPILE_DEBUG_FLAGS}
+${COMPILE_DEBUG_FLAGS} ${NO_DEPRECATED_FLAGS}
CC_OBJNAME = @CC_OBJNAME@
CC_EXENAME = @CC_EXENAME@