From: David Schleef Date: Fri, 30 Aug 2002 22:50:53 +0000 (+0000) Subject: Correct fix for zero-length arrays in gcc-3.0 X-Git-Tag: r0_7_66~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee65e2ac6b8c593f06768db93e5eefaed9a3950f;p=comedi.git Correct fix for zero-length arrays in gcc-3.0 --- diff --git a/include/linux/comedidev.h b/include/linux/comedidev.h index 192c68dc..3d8f1999 100644 --- a/include/linux/comedidev.h +++ b/include/linux/comedidev.h @@ -284,9 +284,15 @@ extern comedi_lrange range_unknown; #define range_digital range_unipolar5 +#if __GNUC__ >= 3 +#define GCC_ZERO_LENGTH_ARRAY +#else +#define GCC_ZERO_LENGTH_ARRAY 0 +#endif + struct comedi_lrange_struct{ int length; - comedi_krange range[]; + comedi_krange range[ GCC_ZERO_LENGTH_ARRAY ]; };