*/
#include <testfwk.h>
-#if __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
struct str1
{
static void
testFlexibleArray1(void)
{
-#if __GNUC__ > 2
-/* flexible array members not supported by gcc < 3 */
+#if !defined __GNUC__ || __GNUC__ >= 3
+ /* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s11) == 1);
/* test allocation size */
/* test initialisation with string */
-#if __GNUC__ > 2
+#if !defined __GNUC__ || __GNUC__ >= 3
/* flexible array members not supported by gcc < 3 */
struct str2
{
static void
testFlexibleArray2(void)
{
-#if __GNUC__ > 2
-/* flexible array members not supported by gcc < 3 */
+#if !defined __GNUC__ || __GNUC__ >= 3
+ /* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s21) == 2);
/* test allocation size */