summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-09-02 13:48:52 (GMT)
committersebres <sebres@users.sourceforge.net>2019-09-02 13:48:52 (GMT)
commitdfb98f070561139ccf2d88b30fb134de3c3fcac4 (patch)
tree570bc9f7274dcb0ea1260ae06075ede75ca99d02
parente3a2100f52b73e6e79f025f5fa791776ef5197a3 (diff)
downloadtcl-dfb98f070561139ccf2d88b30fb134de3c3fcac4.zip
tcl-dfb98f070561139ccf2d88b30fb134de3c3fcac4.tar.gz
tcl-dfb98f070561139ccf2d88b30fb134de3c3fcac4.tar.bz2
windows (mingw build): fix debug recognition (::tcl_platform(debug)), no debug if NDEBUG is set
-rw-r--r--win/nmakehlp.c2
-rw-r--r--win/tclWinInit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c
index c21de63..fac32ee 100644
--- a/win/nmakehlp.c
+++ b/win/nmakehlp.c
@@ -643,7 +643,7 @@ SubstituteFile(
}
/* debug: dump the list */
-#ifdef _DEBUG
+#ifndef NDEBUG
{
int n = 0;
list_item_t *p = NULL;
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 308d3f3..0574c37 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -602,7 +602,7 @@ TclpSetVariables(
TCL_GLOBAL_ONLY);
}
-#ifdef _DEBUG
+#ifndef NDEBUG
/*
* The existence of the "debug" element of the tcl_platform array
* indicates that this particular Tcl shell has been compiled with debug