aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-14 03:22:51 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-14 03:22:51 +1000
commitb62beaf47d9b0839f8d401b92a055cd612cdbbcb (patch)
tree9c4cf2fa687ac138937b04aea6151c7a81a6b577 /env.c
parentb2b1ec27d898cc7aca0fb7af8d576e316f7462c3 (diff)
Use variable arrays if compiler supports C99, this saves a small amount of memory
darcs-hash:20060613172251-ac50b-1e19294700c9b9b72e2254f676004e7d9dceea44.gz
Diffstat (limited to 'env.c')
-rw-r--r--env.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/env.c b/env.c
index 79dcc485..e8f482c7 100644
--- a/env.c
+++ b/env.c
@@ -104,7 +104,11 @@ typedef struct env_node
typedef struct var_entry
{
int export; /**< Whether the variable should be exported */
+#if __STDC_VERSION__ < 199901L
wchar_t val[1]; /**< The value of the variable */
+#else
+ wchar_t val[]; /**< The value of the variable */
+#endif
}
var_entry_t;