summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-27 11:58:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-27 11:58:12 (GMT)
commit72f1949c7681dec4f30a8ff9978364b183d70bd9 (patch)
tree8757d16fd998db48f96f28a25670d5fa8a3eecb7 /generic/tclDecls.h
parent972899b64dba922fdf455f20770ecc495794be08 (diff)
downloadtcl-72f1949c7681dec4f30a8ff9978364b183d70bd9.zip
tcl-72f1949c7681dec4f30a8ff9978364b183d70bd9.tar.gz
tcl-72f1949c7681dec4f30a8ff9978364b183d70bd9.tar.bz2
This construct doens't work on MSVC
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r--generic/tclDecls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index b03e114..82bcfb1 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -4349,7 +4349,7 @@ extern const TclStubs *tclStubsPtr;
#undef Tcl_GetIndexFromObjStruct
#undef Tcl_GetBooleanFromObj
#undef Tcl_GetBoolean
-#if !defined(__cplusplus) && !defined(BUILD_tcl) && !defined(BUILD_tk)
+#if !defined(__cplusplus) && !defined(BUILD_tcl) && !defined(BUILD_tk) && !defined(_MSC_VER)
# define TCLBOOLWARNING(boolPtr) (void)(sizeof(struct {_Static_assert(sizeof(*(boolPtr)) <= sizeof(int), "sizeof(boolPtr) too large");int dummy;})),
#elif defined(__GNUC__)
/* If this gives: "error: size of array ‘_boolVar’ is negative", it means that sizeof(*boolPtr)>sizeof(int), which is not allowed */