summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-05 12:19:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-07-05 12:19:33 (GMT)
commit0e71e665cb4d5c39c2f2164ed86472bf4ca7afd3 (patch)
tree30bbae0d3619efcb7336a2a1eab129122b9c4ad6
parent9e72f541504261b64c3fd6bf696293fe4b6f7e8e (diff)
parent1858f01eaee1d9b9f2973163f2469212b6262d36 (diff)
downloadtcl-0e71e665cb4d5c39c2f2164ed86472bf4ca7afd3.zip
tcl-0e71e665cb4d5c39c2f2164ed86472bf4ca7afd3.tar.gz
tcl-0e71e665cb4d5c39c2f2164ed86472bf4ca7afd3.tar.bz2
Merge 8.7
-rw-r--r--generic/tclInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 8d8c764..6997dda 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -897,7 +897,9 @@ typedef struct VarInHash {
*----------------------------------------------------------------
*/
-#if defined(__GNUC__) && (__GNUC__ > 2)
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+# define TCLFLEXARRAY
+#elif defined(__GNUC__) && (__GNUC__ > 2)
# define TCLFLEXARRAY 0
#else
# define TCLFLEXARRAY 1