diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2012-04-03 13:50:09 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2012-04-03 13:50:09 +0000 |
commit | a8511c74b5946a65d7efdfa171af44f846c13b08 (patch) | |
tree | fe844681cac5c9f721892f85cfe6a27ab3df6889 /otherlibs/bigarray/bigarray.h | |
parent | c8729bff627862b65391f6788d6fab04fbe47c19 (diff) | |
download | ocaml-a8511c74b5946a65d7efdfa171af44f846c13b08.tar.gz |
PR#5516 continued: it seems that some compilers define __GNUC__ yet don't implement flexible arrays as a GCC extension, so use flex arrays iff C99.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12312 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/bigarray/bigarray.h')
-rw-r--r-- | otherlibs/bigarray/bigarray.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/bigarray/bigarray.h b/otherlibs/bigarray/bigarray.h index 8625b0d9fe..f6552107a6 100644 --- a/otherlibs/bigarray/bigarray.h +++ b/otherlibs/bigarray/bigarray.h @@ -73,8 +73,8 @@ struct caml_ba_array { intnat num_dims; /* Number of dimensions */ intnat flags; /* Kind of element array + memory layout + allocation status */ struct caml_ba_proxy * proxy; /* The proxy for sub-arrays, or NULL */ - /* PR#5516: use C99's / gcc's flexible array types if possible */ -#if (__STDC_VERSION__ >= 199901L) || defined(__GNUC__) + /* PR#5516: use C99's flexible array types if possible */ +#if (__STDC_VERSION__ >= 199901L) intnat dim[] /*[num_dims]*/; /* Size in each dimension */ #else intnat dim[1] /*[num_dims]*/; /* Size in each dimension */ |